Split Date (Define)
1 min
Enumerates a given date
API Definition
Date Split API
Call the following API:
POST
https://orca.pathfix.com/functions/datetime/split
json
{
"input": "2021-06-30T09:00:00.000000Z"
}200
{
"output": {
"year": 2021,
"month": "06",
"day": "30",
"dayOfWeek": 3,
"dayOfYear": 181,
"hour": "09",
"hour12": "09",
"minute": "00",
"ISO": "2021-06-30T09:00:00Z",
"dateISO": "2021-06-30",
"posixSeconds": 1625043600,
"posixMilliSeconds": 1625043600000,
"ampn": "am",
"weekDayName": "Wed",
"weekDayNameFull": "Wednesday",
"monthName": "Jun",
"monthNameFull": "June",
"monthStart": "2021-06-01",
"monthEnd": "2021-06-30",
"nextMonthStart": "2021-07-01",
"lastMonthEnd": "2021-05-31"
},
"size_in_bytes": 480.0
}404
{
"message": "error"
}