/
DaysInMonth function
DaysInMonth function
Returns the number of days in the month in the given date.
Namespace
datetime
Input
date(date
)
Output
days in month(int
)
Example
If basedate
contains the date 1958–08–18
, then the two following functions are equivalent, and return the integer value 31
.
set-column result datetime:DaysInMonth('1958-08-18')
set-column result datetime:DaysInMonth(basedate)
Related content
DaysSinceFromDate function
DaysSinceFromDate function
More like this
GitHub Batch Source (Deprecated)
GitHub Batch Source (Deprecated)
More like this
Google Ads Single Report Batch Source (Deprecated)
Google Ads Single Report Batch Source (Deprecated)
More like this
Google Ads Multiple Report Batch Source (Deprecated)
Google Ads Multiple Report Batch Source (Deprecated)
More like this
Hive Bulk Import Action (Deprecated)
Hive Bulk Import Action (Deprecated)
More like this
NGramTransform Spark Compute Analytics (Deprecated)
NGramTransform Spark Compute Analytics (Deprecated)
More like this
Created in 2020 by Google Inc.