- Aug
- 2,799
- 144
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!C:\>function prevdate=`%@makedate[%@dec[%@date[%$]]]`
C:\>echo %@prevdate[11/04/2008]
11/03/08
C:\>echo %@prevdate[03/01/1988]
02/29/88
C:\>echo %@prevdate[]
07/22/26
C:\>
v:\> function prevdate `%@word[",",0,%@agedate[%@eval[%@makeage[%@if[%# GT 0,%1,%_date]] - 864000000000]]]`
v:\> echo %@prevdate[]
2026-07-22
v:\> echo %@prevdate[2000-03-01]
2000-02-29
v:\> echo %@prevdate[1900-03-01]
1900-02-28
I like working with FILETIMEs. This'll go back farther but it'll be fussy about the date format.