AnalyticsQuiverTransform referencesTime operations

Time operations

Back to: Index of transforms

Transforms in this section operate on a time data type. Learn more about how to search for and add a transformation.

Shift date

Shift a date by a duration. Returns a new time column at a specified number of weeks, days, hours, minutes, seconds, or milliseconds before or after your input date/time column.

Shift date/time

Shift an input timestamp.

Static time

Use a static time as a column.

Day to date

Create a range starting from 00:00 on the input date to the input date.

Week to date

Creates date range starting from 00:00 of the first day (either Monday or Sunday, as defined by user's locale) of input date's week to the input date.

Month to date

Create a range starting from 00:00 on the first day of the input date's month to the input date.

Year to date

Create a range starting from 00:00 on January 1st of the input date's year to the input date.

Day of week

Gets the day of week from a date as a number.

Day of month

Gets the day of month from a date as a number.

Day of year

Gets the day of year from a date as a number.

Hour of day

Gets the hour of day from a date as a number.

Month

Gets the month from a date as a number.

Year

Gets the year from a date as a number.

String to date

Convert a string representation of a date, for example 18/07/2023 or July 18, 2023 into a date type. Set the timezone to be used to a specific timezone, Local or UTC. Optionally, also provide the date format for parsing in dayjs format ↗.

Number to date

Convert a numeric representation of a date (either Unix seconds or milliseconds, representing a timestamp in UTC) to a date type. This transform is useful, for example, to convert the returned value (number data type) of a numeric aggregation on an object set Date property back to a Date type, to be used as input for other transforms or cards.