ReferenceScript nodesMath › Date and Time
Get Today
Today's date: month 1 to 12, day 1 to 31.
ƒGet Today
Year
Month
Day
Inputs
None.
Outputs
| Pin | Type |
|---|---|
Yearyear | int |
Monthmonth | int |
Dayday | int |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log((new Date().getFullYear()));In a graph
◆On Scene Start
ƒGet Today
Year
Month
Day
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.