I'm not aware of a "Format Date" function in Aspect. What I would do is get the date/time, then extract each part of the date and then format the date the way I want it. Here's a simple example:
proc main
integer Month, Day ; Integers to contain date and
integer Year, Hour ; time converted from long
integer Min, Sec ; Min and Sec.
;string MonStr ; String to contain month.
; Convert long time value into it's counter parts, year,
; month, day, hour, min, and sec.
ltimeints $LTIME Year Month Day Hour Min Sec
;monthstr Month MonStr ; Get the month in string format.
usermsg "IT's: %02d %d %d At: %d:%d" Month Day Year Hour Min
endproc
You May want to change the user message so that the Day Variable is printed before the Month Variable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.