Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Function: FirstDayOfMonth

The FirstDayOfMonth function takes a date/time value and returns another date time value, equal to the first day of the month in the supplied date. This can be useful when combined with the LastDayOfMonth function to get results for a single month date range.

Syntax

Code Block
languagenone
FirstDayMonth(datetime)

Example

Code Block
languagenone
EntityType = Incident
AND LastUpdatedAt >= FirstDayOfMonth(DateSubtract(Now(), "4 weeks")) 
AND LastUpdatedAt <= LastDayOfMonth(DateSubtract(Now(), "4 weeks")) 

See Also