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
button
component into the canvas and open theAction
tab. Select thepress
event of the button and drag theLog.write
function to the event flow.Call the function
DateTime.get
inside theLog.write
function.Sample parameters are shown in the picture below.
Result
The console will print the current date.
Last updated