DATEFROM(A,B,C)
- 1 Minute to read
- Print
- DarkLight
- PDF
DATEFROM(A,B,C)
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Date Transform: DATEFROM(A,B,C)
Create a Date Field from Year(A), Month(B) and Day(C)
Purpose
Use this function to:
- Construct date fields from integer parts
Return Value
Property | Value |
---|---|
FieldType | Date |
FieldSize | Med |
DataType | Discrete |
DataSize | Short |
Example Return Value: 2019-05-08
Parameters
Parameter | JSON | Description |
---|---|---|
Table | “targetTable”: “MyTableName” | The target table on which the new field will be created |
Filter | “dataset”: {DataSet_JSON} | Optional. If a filter is applied, records not in the filter Recordset will be returned as null. |
DateTimeFunction | “p1”: “DATEFROM(A,B,C)” | DATEFROM(A,B,C) |
A | “p2”: “YearFieldName” “p2”: “#YYYY” | Required. Integer value specifying the year component of a date. Supports:
|
B | “p3”: “MonthFieldName” “p3”: “#MM” | Required. Integer value specifying the year component of a date. Supports:
|
C | “p4”: “DayFieldName” “p4”: “#DD” | Required. Integer value specifying the year component of a date. Supports:
|
JSON Sample
Usage Notes
A mixture of FIXED_VALUES and Database fields can be used to create the new date field.
Date fields can also be created from strings using the DateFromString function.
Example
Example | Details |
---|---|
Description | Create a random date field |
Input |
|
Sample |
Was this article helpful?