ReferenceScript nodesMath › Date and Time
Split Date and Time
A DateTime's parts: year, month (1 to 12), day, hour (0 to 23), minute, second and millisecond.
ƒSplit Date and Time
In DateTime-6.21356e+13Year
Month
Day
Hour
Minute
Second
Millisecond
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
In DateTimedt | datetime | -6.21356e+13 | – |
Outputs
| Pin | Type |
|---|---|
Yearyear | int |
Monthmonth | int |
Dayday | int |
Hourhour | int |
Minuteminute | int |
Secondsecond | int |
Millisecondms | int |
In a graph
◆On Scene Start
ƒSplit Date and Time
In DateTime-6.21356e+13Year
Month
Day
Hour
Minute
Second
Millisecond
ƒ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.