vb.net - How can i retrieve date time available per second in one day? -
my input date. but, i'm stuck on how retrieve date time in every second. need put each second date time in 2d array.so array(0,0) should equal 2/10/2014 00:00:00 , array(86399,0) equal 2/10/2014 23:59:59 pm.
i tried looping per below code:
dim twodarray(86399, 1) string dim dtinput date dtinput= #2/10/2014# i=0 86399 twodarray(i, 0) = dtinput dtinput = dtinput +second 'i know not right next
i don't know how increase date time every second in right way. please help.
have thought along lines of
using datetime (msdn datetime)
dtinput= new datetime(2014,10,2) i=0 86399 twodarray(i, 0) = dtinput dtinput = dtinput.addseconds(1) next
or
dtinput= new datetime(2014,10,2) i=0 86399 twodarray(i, 0) = dtinput.addseconds(i+1) next
Comments
Post a Comment