Change the date part of the first operand to the date part of the second operand. It takes two datetime operands.
Change the time part of the first operand to the date part of the second operand. It takes two datetime operands.
Return the current date. It takes zero operands.
Return the date part. It takes one datetime operand.
Return the day of month value as a number. It takes one datetime operand.
Returns the number of days in the month according to the year and month values of the operand. It takes one datetime operand.
Convert a datetime to string. The date part of the datetime is formatted according to the date format of the currently set locale. It takes one datetime operand.
Convert a datetime to formatted string. It takes two operands, one datetime and one string. It takes the second (string) operand as a format string and formats the datetime value according to the format string. If the second operand is NULL or empty string, this function behaves like the dtos() function. Otherwise it behaves like the format() function with the operands reversed.
Convert the time part of the datetime to seconds elapsed from 00:00:00. It takes one datetime operand.
Convert the parameter(s) to an interval subtype of the datetime type. It takes either one string operand, or six numeric operands.
In the first case, the string is parsed for interval values,
like 1 year
or 2 months
,
etc., and sets the specific datetime part values.
In the second case, the six numeric operands are the values for the datetime parts, in the order of years, months, days, hours, minutes and seconds.
Return the month value of a datetime. It takes one datetime operand.
Return the current timestamp in a datetime value. It takes zero operands.
The "current timestamp" is determined at the beginning of generating the report. This function returns the same stable value for the lifetime of the report.
Return a datetime with the time part of a datetime changed to the specified seconds after 00:00:00. It takes two operands, the first operand is a datetime, the second is a numeric integer.
Return the ISO-8601 week number of a datetime as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the new year. It takes one datetime operand.
Alias for stodt()
.
Convert a string to a datetime value. It takes one string operand.
This function is smart enough to recognize locale specific and standard ISO-8601 formats. It handles whole datetime, date-only and time-only values in the string.
Alias for stodt()
.
Return time part of the datetime operand. It takes one datetime operand.
Alias for stodt()
.
Return the week number of the operand as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01. It takes one datetime operand.
Return the week number of the operand as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01. It takes one datetime operand.
This function returns the week number of the first operand as a decimal number, range 00 to 53, starting with the specified day number as the first day. (0 = Sunday, 1 = Monday, 2 = Tuesday, ...) It takes two operands, the first is a datetime, the second is a numeric integer.
Return the year value of the operand as a numeric value. It takes one datetime operand.