DAY(A)
  • 1 Minute to read
  • Dark
    Light
  • PDF

DAY(A)

  • Dark
    Light
  • PDF

Article summary

Date Transform: Day(A)

Returns the Day part of a Date or Timestamp as an integer from 1 to 31

Purpose

Use this function to:
  • Extract the date of the month from a date field
  • Extract the date of the month from a time-stamp

Return Value

PropertyValue
FieldTypeInteger
FieldSizeMed
DataTypeDiscrete
DataSizeShort


Example Return Value: 1...31

Parameters

ParameterJSONDescription
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”: “DAY(A)”DAY(A)
A“p2”: “DateTimeFieldName”
“p2”: “DateFieldName”
“p2”: “#YYYY-MM-DD HH:MM:SS”
“p2”: “#YYYY-MM-DD”
Required. Source field or value from which to extract the day portion of a date.
Supports:  
  • DataType: Discrete / Continuous
  • Field Type: Date, DateTime
  • Fixed Value:  #YYYY-MM-DD,    e.g. #2021-04-05
  • Fixed Value:  #YYYY-MM-DD HH:MM:SS,    e.g. #2021-04-05 11:01:08

JSON Sample

Usage Notes

DAY(A) can be used to extract the day of the month from a Date Field, or from a fixed value.

Example

ExampleDetails
DescriptionExtract Day of month from shipping date
Input
  • Table: = [transactions]
  • Function: = DateTransform
  • DateTimeFunction: = DAY(A)
  • A:= [transactions].[dtShipping]
  • Name: =DayShipping
Sample



Was this article helpful?