Date literals

Previous Next

USoft Blend  > Expressions  >  Literal expressions >  Date literals

 

Date literal is a data type for string values susceptible of being interpreted as an indication of a date, or of a date and a time, for example:

12-05-2019

12-MAY-2019 13:00

XPath does not have a special data type for dates or clock times. USoft Blend is able to interpret (XPath and non-XPath) string expressions as indications of date or time by applying the list of format masks that is returned by:

<pc:value-of select="dates:ShowInputFormats" />

 

For example, the following string:

12-05-2019

 

is interpreted as an expression of May 12, 2019 if the following date format mask is featured in this list:

DD-MM-YYYY

 

See also

Guide to expressions and data types

          Literal expressions

                 Dates

                 string literals

          Path expressions

          XML expressions

          XPath expressions

                 Node set expressions

                 Booleans

                 Strings

                 Numbers

                 Function calls

                 Variable references

                 Implicit XPath data type conversion

                 Evaluated expressions vs. literals

          SQL expressions