---
title: Split Date (Define)
slug: split-date-define
docTags: 
createdAt: 2022-09-07T03:21:02.000Z
---

Enumerates a given date

### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/datetime/split",
  "name": "Date Split API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "28UsDqyeH3QRdmtVamSQT",
        "code": "{\n    \"output\": {\n        \"year\": 2021,\n        \"month\": \"06\",\n        \"day\": \"30\",\n        \"dayOfWeek\": 3,\n        \"dayOfYear\": 181,\n        \"hour\": \"09\",\n        \"hour12\": \"09\",\n        \"minute\": \"00\",\n        \"ISO\": \"2021-06-30T09:00:00Z\",\n        \"dateISO\": \"2021-06-30\",\n        \"posixSeconds\": 1625043600,\n        \"posixMilliSeconds\": 1625043600000,\n        \"ampn\": \"am\",\n        \"weekDayName\": \"Wed\",\n        \"weekDayNameFull\": \"Wednesday\",\n        \"monthName\": \"Jun\",\n        \"monthNameFull\": \"June\",\n        \"monthStart\": \"2021-06-01\",\n        \"monthEnd\": \"2021-06-30\",\n        \"nextMonthStart\": \"2021-07-01\",\n        \"lastMonthEnd\": \"2021-05-31\"\n    },\n    \"size_in_bytes\": 480.0\n}",
        "language": "200"
      },
      {
        "id": "yIX64DyIuDPJgBRFSfAWb",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "28UsDqyeH3QRdmtVamSQT"
  },
  "examples": {
    "languages": [
      {
        "id": "ENcJz9TStG38F0X-taA4x",
        "code": "{\r\n\t\"input\": \"2021-06-30T09:00:00.000000Z\"\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "ENcJz9TStG38F0X-taA4x"
  },
  "description": "\nCall the following API:",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::









