-
When you refer to a column in a query results set, if
you do not specify the format= parameter but the column has one of
the following formats associated with it, then htmSQL uses the associated
format to resolve the reference:
-
When you refer to a column in a query results set, if the column
has a date, time, or datetime format associated with it, the following
formats are used:
Regardless of what
date format your column has, htmSQL always outputs date values as
either ddMmmyy or ddMmmyyyy, where
-
dd is the day of the month
-
Mmm is the first three letters of the month of the year
-
yy and
yyyy are the last two
and four digits of the year, respectively (depending on the value
of the
YEARDIGITS run-time configuration option).
Regardless of what
time format your column has, htmSQL always outputs time values as hh:mm:ss, where
-
hh is the hour of the day using a 24-hour clock
-
mm is the minute of the hour
-
ss is the second of the minute. Note that htmSQL does not handle fractions
of seconds.
Regardless of what
datetime format your column has, htmSQL always outputs datetime values
as ddMmmyy hh:mm:ss or ddMmmyyyy hh:mm:ss, where
-
dd is the day of the month
-
Mmm is the first three letters of the month of the year
-
yy and
yyyy are the last two
and four digits of the year, respectively (depending on the value
of the
YEARDIGITS run-time configuration option)
-
there are two spaces separating
the date value and the time value
-
hh is the hour of the day using a 24-hour clock
-
mm is the minute of the hour
-
ss is the second of the minute. Note that htmSQL does not handle fractions
of seconds.
Note: If you want to use other
date, time, or datetime formats, you can use
the PUT() function in your SQL query to change the format.