Skip to main content

Get Current Date and Time

Overview


Gets the current date and time and formats it as a string.

Input

Date and Time

NameRequiredDescription
FormatThe format to use for the date and time. Optional, defaults to "yyyy-MM-dd HH:mm:ss".
Use UTC TimeIf true, returns the current date and time in Coordinated Universal Time (UTC). If false, returns the local date and time.

Output

Formatted Date and Time The current date and time formatted as a string.