get
Description
Retrieves the current date and/or time information.
Input / Parameter
Name
Description
Input Type
Default
Options
Required
type
The type of date and/or time information to retrieve.
Text
Date_Time
Date_Time, Date, Time
No
Output
Description
Output Type
Returns the current date and/or time information.
Text
Example
In this example, we will get the current date and print it in the console.
Step
Drag a
buttoncomponent into the canvas and open theActiontab. Select thepressevent of the button and drag theLog.writefunction to the event flow.Call the function
DateTime.getinside theLog.writefunction.Sample parameters are shown in the picture below.

Result
The console will print the current date.

Last updated