How to get the Previous dates

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
nerdweed
Posts: 652
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

How to get the Previous dates

Post by nerdweed »

Any idea, how to fetch the previous date, like yesterdays date or 35 days ago. Date offset is present for datec, datem. I need it for <date>.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: How to get the Previous dates

Post by serendipity »

nerdweed wrote:Any idea, how to fetch the previous date, like yesterdays date or 35 days ago. Date offset is present for datec, datem. I need it for <date>.
See command formatdate, this example shifts ahead 35 days:

Code: Select all

text formatdate(<date>, , "d", 35);

nerdweed
Posts: 652
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

Re: How to get the Previous dates

Post by nerdweed »

Thanks.

Post Reply