Skip to content

Syntax

currentDate() will return date in mm/dd/yyyy format

currentDate( dateFormat ) where dateFormat is any valid SimpleDateFormat will return date in that format

currentDate('ms') will return date in milliseconds. Notice they're single quotes, not double quotes.

Output

 11/09/2018

 03:35:38

 1541806538347