When you do this instead of print 2017_01_16 print 2017_1_16-
FTP Script
- # Get the current date in the format YYYY_MM_DD-hh_mm_ss
- # Then, you can substract or add seconds to that date stored
- # in the variable. Yesterday is:
- $yesterday=$currentdate-(60*60*24)
- # (3600*60*60) is the amount in seconds in a day.
- # This shold print the yesterday date:
Hi,
It should print the date along with the time(for example 2017_1_17-20_15_54). I have tested the script with the latest version and it correcly shows the time of yesterday substracting 24 hours to the current time. See the screenshot:
It should print the date along with the time(for example 2017_1_17-20_15_54). I have tested the script with the latest version and it correcly shows the time of yesterday substracting 24 hours to the current time. See the screenshot:
liked Script FTP? Try our other product Email Parser
I think he means the month changes from 01 to just 1, without the trailing 0?
Yes, correct. Disregard my last response. This has been fixed in the new 4.3 beta version. It can be downloaded from here. (sorry, no link)
https://www.ScriptFTP.com/beta
https://www.ScriptFTP.com/beta
liked Script FTP? Try our other product Email Parser