System - Get Date Time

Returns the current date or time in a specific format.

Action ID:
Action Category:
Action List Syntax:

139
System
<<VARIABLE>>
= System.GetDateTime. (<<GETTYPE>>, <<RETURNTYPE>>)

Settings

Variable

Store result in variable:

The variable that the current date or time will be stored in.

Generation Mode

Date:

Returns the current date in one of the following formats:

North American Date

-

MM/DD/YYYY

European Date

-

DD/MM/YYYY

ISO Date

-

YYYY-MM-DD

Julian Date

-

An integer value representing the number of days since midnight on January 1, 4713 B.C.

Month

-

The current month in MM format.

Day

-

The current day in DD format.

Year

-

The current year in YYYY format.

Day of the Week

-

The current day of the week, and number from 1 to 7, where 1 = Sunday and 7 = Saturday

Time:

Returns the current time in one of the following formats:

Military Time

-

The current time using the 24 hour clock: HH:MM:SS

AM/PM Time

-

The current time using the 12 hour AM PM clock. "AM" or "PM" will be added to the end, depending on the time: HH:MM:SS AM or HH:MM:SS PM

Second

-

The current second in SS format.

Minute

-

The current minute in MM format.

Hour

-

The current hour in HH format.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

Examples

Expiring 30 days after building

Expiring 30 days after running the first time

Inserting a line in a text file

Setting a Registry value