DateTime
Returns the server's current local date and time, formatted with the optional .NET date/time format string.
String DateTime(String format = 'yyyy-MM-dd HH:mm:ss.fff')
Minutes vs. months
Format specifiers are case-sensitive: mm is minutes and MM is months.| Format specifier | Description |
| d / dd | Day of the month, 1-31 / 01-31. |
| ddd / dddd | Abbreviated / full name of the day of the week. |
| f ... fffffff | Tenths of a second through ten-millionths of a second. |
| F ... FFFFFFF | As f, but nothing is shown when the digits are zero. |
| h / hh | Hour on a 12-hour clock, 1-12 / 01-12. |
| H / HH | Hour on a 24-hour clock, 0-23 / 00-23. |
| m / mm | Minute, 0-59 / 00-59. |
| M / MM | Month, 1-12 / 01-12. |
| MMM / MMMM | Abbreviated / full name of the month. |
| s / ss | Second, 0-59 / 00-59. |
| t / tt | First character of / full AM/PM designator. |
| y / yy / yyyy | Year as 0-99 / 00-99 / four digits. |
| z / zz / zzz | Offset from UTC in hours / hours with leading zero / hours and minutes. |
| K | Time zone information. |
| : and / | Time and date separators. |
| 'text' | Literal text. |
| \ | Escape character. |
SELECT
DateTime() as LocalDateTime,
DateTime('MM/dd/yyyy') as FormattedDate,
DateTime('MM/dd/yyyy hh:mm:ss tt') as FormattedDateTime
FROM
SingleSQL :: IsEmpty
Returns true (1) if the given value is null or an empty string.
SQL :: IsEqual
Returns true (1) if the two given values are equal. The comparison is case-sensitive.
SQL :: IsGreater
Returns true (1) if the first value is greater than the second.
SQL :: IsGreaterOrEqual
Returns true (1) if the first value is greater than or equal to the second.
SQL :: IsInteger
Returns true (1) if the given value is a whole number, with an optional leading sign.
SQL :: IsLess
Returns true (1) if the first value is less than the second.
SQL :: IsLessOrEqual
Returns true (1) if the first value is less than or equal to the second.
SQL :: IsLike
Returns true (1) if the text matches the pattern. The pattern uses the same wildcards as Like: % matches any number of characters and _ matches a single character.
SQL :: IsNotBetween
Returns true (1) if the value is outside of the given range. The range boundaries are considered inside the range.
SQL :: IsNotEqual
Returns true (1) if the two given values are not equal. The comparison is case-sensitive.