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

Can anyone tell me how to get previous days date through quick macros. I saw different functions which takes system date but I am looking for functions/code which can generate previous days date.

Thanks In Advance,
Sanish S
#2
Get current date and subtract 1 day.

Macro Macro2333
Code:
Copy      Help
DateTime d.FromComputerTime
d.AddParts(-1)

out d.ToStr
#3
Thanks Gintaras... Smile ...its working...!!

Thanks,
Sanish S


Forum Jump:


Users browsing this thread: 1 Guest(s)