Created
November 17, 2014 02:17
-
-
Save melmatsuoka/438a6f935ead49402d1a to your computer and use it in GitHub Desktop.
Converts native AppleScript 'current date’ output to YYYYMMMDD format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on dateISOformat(dateString) set y to text -4 thru -1 of ("0000" & (year of dateString)) set m to text -2 thru -1 of ("00" & ((month of dateString) as integer)) set d to text -2 thru -1 of ("00" & (day of dateString)) return y & m & d end dateISOformat dateISOformat(current date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment