Expand|Select|Wrap|Line Numbers
- DateAdd("n", d, l)
Expand|Select|Wrap|Line Numbers
- DateAdd("H:N", d, l)
"H:N" = format hours from 1 to 24 and from 0 to 59 minutes depending the case
d = 1:20(one hour and twenty minutes)(datepart) or 0:20(twenty minutes)(datepart)
l = The "actual" time (8:00 AM) (current time)
ex. Dateadd("n", "0:20", 8:00 AM)
Already did the example above (d = 0:20) in the program , It returns me 8:20 AM without a problem, but. the next one...
ex. Dateadd("H:N","1:20", 8:00 AM)
The above example should return "9:20 AM" but instead it returns syntax error, If I replace the "h:nn" to "n" it accepts the entry but assigns only "20" minutes, is this the correct way to format this?