RosettaCodeData/Task/Date-format/AppleScript/date-format-3.applescript
2023-07-01 13:44:08 -04:00

8 lines
239 B
AppleScript

tell (the current date)
set shortdate to text 1 thru 10 of (it as «class isot» as string)
set longdate to the contents of [its weekday, ", ", ¬
(its month), " ", day, ", ", year] as text
end tell
log the shortdate
log the longdate