By Alvin Alexander. Last updated: July 11, 2017
AppleScript date FAQ: How do I get the current date? (or, How do I get today’s date?)
The short answer is just to use AppleScript code like this: (current date)
. Here’s an example of how to use this:
display dialog (current date) as string
This AppleScript example gets the current date, and then displays it in a dialog.