Skip to main content

Get current date and time

Date & Time·v1.0.0
Date & TimeLow risk

Get today's date and the current time

Inputs

NameTypeRequiredDefaultDescription
Date Format
dateFormat
stringOptionalyyyy-MM-dd HH:mm:ss
Timezone
timezone
enumOptionallocal
localUTC
Output Variable
outputVariable
variableOptionalCurrentDateTime

Output

$outputVariableDateTime

Current date and time

  • dateTimeDateTime
  • formattedString
  • isoString
  • timestampNumber
  • components.yearNumber
  • components.monthNumber
  • components.dayNumber
  • components.hourNumber
  • components.minuteNumber
  • components.secondNumber
  • components.dayNameString
  • components.monthNameString

Compatibility

WindowsLinuxAttendedUnattended

Related activities