Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get privious date
#1
Hi All,

Any one know how to write macro to get previous date in ddmmyyy format.

Regards,
Manoj
#2
Gets current time minus 1 day.
Macro Macro2322
Code:
Copy      Help
str s
DateTime t
t.FromComputerTime
t.AddParts(-1) ;;minus 1 day
s=t.ToStrFormat("{ddMMyy}") ;;or s.timeformat("{ddMMyy}" t)
out s


Forum Jump:


Users browsing this thread: 1 Guest(s)