Kexi/Plugins/Queries/SQL Constants: Difference between revisions
Line 7: | Line 7: | ||
Grammar - two versions: | Grammar - two versions: | ||
* ISO format (KEXI default, recommended) | * ISO format (KEXI default, recommended) | ||
# | #yyyy-mm-dd# | ||
* US format (for compatibility, based on MSA default [https://msdn.microsoft.com/en-us/library/bb221200(v=office.12).aspx]) | * US format (for compatibility, based on MSA default [https://msdn.microsoft.com/en-us/library/bb221200(v=office.12).aspx]) | ||
# | #mm/dd/yyyy# | ||
Note: MSA's format such as #24 Dec 2014# is not supported. | Note: MSA's format such as #24 Dec 2014# is not supported. |
Revision as of 15:34, 15 April 2018
Date constants
(since 3.1.1, Bug #393094)
Grammar - two versions:
- ISO format (KEXI default, recommended)
#yyyy-mm-dd#
- US format (for compatibility, based on MSA default [1])
#mm/dd/yyyy#
Note: MSA's format such as #24 Dec 2014# is not supported.
Time constants
Grammar - two versions:
- Full
#{whitespace}*hh:nn:ss*#
- Short
#{whitespace}*hh:nn*#
Date/Time constants
(since 3.1.1, Bug #393094)
Grammar:
#{whitespace}*{date}{whitespace}+{time}#
Where {date} is defined as for Date literals and {time} is defined as for Time literals.