Newer Version Available
Dates in XMD
Specify the first day of the week for the year.
The dates section can have the following
parameters.
| Parameter | Description |
|---|---|
| alias | Identifier (API name) for the dataset field used to generate the date part fields in the dataset. For example, Order_Date generates Order_Date_Month and Order_Date_Minute. |
| fields |
Array of the date part fields, like CloseDate_Day, CloseDate_Year, and CloseDate_Hour. You must specify all date parts. If fiscalMonthOffset is set in the dataflow or XMD file for CSV data, you must also specify fiscal date parts, like CloseDate_Week_Fiscal. To specify a date part, use the format <date_field_name>_<date_part>. For example, for the week date part for the CloseDate field, enter CloseDate_Week. |
| firstDayOfWeek | (Integer) Declares the first day of the week: 0 = Sunday, 1 = Monday, and so on. –1 = the first day of the calendar year. To prevent unexpected behavior, specify the first day of the week consistently for every date field in the dataset. |
| fiscalMonthOffset | (Integer) The difference in the number of months between the calendar year and the fiscal year. Set this parameter to an integer between 0 and 11. Although you’re required to set this parameter, the system ignores it. The system uses only the fiscalMonthOffset parameter set in the dataflow or schema file for CSV uploads. |
| label |
Display name for the dataset field, up to 40 characters. Example: "label": "Closing Date" |
For more information about date parts and the first day of the week, see Date Handling in Datasets.