I am new to REXX code,Here i want to retrieve yesterday's date in rexx code
i am using below code :
/*Rexx*/
/*example cuurent date is 20190508*/
a = date('s') - 1
say a
/*returns 20190507 */
/*example cuurent date is 20190508*/
a = date('s') - 1
say a
/*returns 20190507 */
The above scenario working fine for all the date expect on date '20190501'.when its coming on 1st date (20190501) then its not giving 20190430 but it returns '20190500'
can anyone please help me to resolve this issue?