According to tutorial, I print time as below:
The result is something like below, please note the format is changed, the month and date are missing "0", two digits format changed to 1 digit. This makes me to retrieve month and date difficult.
The result is something like below, please note the format is changed, the month and date are missing "0", two digits format changed to 1 digit. This makes me to retrieve month and date difficult.
2017_06_13-16_41_59
2017_6_9-16_41_59
You try to subtract a number from the formatted string - you do not have to wait for the correct result...
And the topic was raised two times only recently...
http://www.scriptftp.com/forum/general-f6/way-to-check-number-of-days-in-a-month--t9027.html#p14942
And the topic was raised two times only recently...
http://www.scriptftp.com/forum/general-f6/way-to-check-number-of-days-in-a-month--t9027.html#p14942
I code "yesterday" as blow, and test OK on any state I guess (20170101, 20170131, 20171203, 20171212).
FTP Script
- $oneDate=$currDate-(1*24*60*60)
- $strOneDate=$oneYear . $oneMonth . $oneDay
Hi there,
Yes, there is a bug when substracting seconds from a date. As reported by field_flying, the output is not correct and it should match YYYY_MM_DD-HH_MM_SS, there are some missing zeroes.
I have fixed it and uploaded the new setup here:
https://www.ScriptFTP.com/beta
Yes, there is a bug when substracting seconds from a date. As reported by field_flying, the output is not correct and it should match YYYY_MM_DD-HH_MM_SS, there are some missing zeroes.
I have fixed it and uploaded the new setup here:
https://www.ScriptFTP.com/beta
liked Script FTP? Try our other product Email Parser