Brother International TJ-4520TN FBPL Command Reference - Page 187
DATEADD, Description, Syntax, Example
View all Brother International TJ-4520TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 187 highlights
10.52 DATEADD() Description Return a date after which a specified time/date interval has been added. The returned value always uses with FORMAT$( ) command. Syntax DATEADD(interval$,number,date) Parameter interval$, Description The time/date interval for adding. It can be one of following values. Interval$ "yyyy" "q" "m" "y" "d" "w" "ww" "h" "n" "s" The interval unit of parameter interval$ Year. Quarter. Month. Day of year. Day. Weekday. Week of year. Hour. Minute. Second. Number Date The number of interval$ for adding. The date which is used to add the interval$. Date format: yyyy/mm/dd Time format: hh:nn:ss Example Sample Code 1 SIZE 4,2 GAP 0,0 DIRECTION 1 CLS TEXT 10,10, "3",0,1,1, "Current RTC info: " +NOW$() TEXT 10,60, "3",0,1,1, "-1 year: " +FORMAT$(DATEADD("yyyy",-1, " 11/26/2012 10:08:00"), "yyyy/mm/dd hh:nn:ss") TEXT 10,110, "3",0,1,1, "+9 months: " +FORMAT$(DATEADD("m",9,NOW), "Short Date") TEXT 10,160, "3",0,1,1, "-8 hours: " +FORMAT$(DATEADD("h",-8,NOW), "Short Time") TEXT 10,210, "3",0,1,1, "+5 mins: " +FORMAT$(DATEADD("n",5,NOW), "Short Time") TEXT 10,260, "3",0,1,1, "+00 day: " +FORMAT$(NOW, "Short Date") TEXT 10,310, "3",0,1,1, "+20 days: " +FORMAT$(DATEADD("d",20,NOW), "Short Date") TEXT 10,360, "3",0,1,1, "-20 day: " +FORMAT$(DATEADD("d",-20,NOW), "Short Date") PRINT 1 182