get
Last updated
Last updated
Retrieves the current date and/or time information.
type
The type of date and/or time information to retrieve.
Text
Date_Time
Date_Time, Date, Time
No
Returns the current date and/or time information.
Text
In this example, we will get the current date and print it in the console.
Drag a button
component into the canvas and open the Action
tab. Select the press
event of the button and drag the Log.write
function to the event flow.
Call the function DateTime.get
inside the Log.write
function.
Sample parameters are shown in the picture below.
The console will print the current date.