r***@gmail.com
2008-01-02 15:18:14 UTC
I need previous month date and year in a macro variable in mmyy form
Ex: 1
Todays date is 01/02/08
01 is month and 08 is year I need value of previous month
Mm= 12 will be previous month value
YR= 07 the year corresponding to that month
I need 1207 value
Ex2:
If Date in 1st feb 08
I need 0108 value // prev month would be JAN ie 01 and year would be
same so 08
I was trying using date() to get todays date and using put statement
to get char value and input to get numeric value and also with
substring method but unable to get it.
Ex: 1
Todays date is 01/02/08
01 is month and 08 is year I need value of previous month
Mm= 12 will be previous month value
YR= 07 the year corresponding to that month
I need 1207 value
Ex2:
If Date in 1st feb 08
I need 0108 value // prev month would be JAN ie 01 and year would be
same so 08
I was trying using date() to get todays date and using put statement
to get char value and input to get numeric value and also with
substring method but unable to get it.