Difference between revisions of "AsDate"

From Keyfax Wiki
Jump to: navigation, search
(Created page with "Converts a value into a date using the format specified after the argument. ==Example One== File:asdatefunction1.png Convert a fixed value. Databox CompanyData.Expressi...")
(No difference)

Revision as of 14:50, 10 April 2019

Converts a value into a date using the format specified after the argument.

Example One

Asdatefunction1.png

Convert a fixed value. Databox CompanyData.Expressions.Date holds the value 15-10-2016 and using Examples.Date.AsDate in the message Expressions.EXPDATE it is converted into the format "ddd dd MMM yyyy"

Setup

Asdatefunction2.png

The fixed value to be converted.

Asdatefunction3.png

Asdatefunction4.png

This is the expression to convert it to a different format. Using the correct formats shown on the Date Expressions page, you can convert this date into almost limitless formats.

Asdatefunction5.png

The message applies the expression and displays it as seen below.

Asdatefunction7.png

Example Two

Convert a user entered date. This example follows the same format as the first but using a date entered by the user rather than a fixed value.

Asdatefunction8.png

Asdatefunction9.png

Asdatefunction10.png

Example Three

Setup