Date, Time, and Datetime Values for FSM Mobile Elements

The value, min, and max properties must resolve to the format required by the target element. This applies to fixed values, template tags, expressions, and formula results. FSM ignores a configured property whose result does not match the required format.

Element Type

Required Format

Example

date

YYYY-MM-DD

2026-07-14

timeofday

HH:mm:ss

09:30:00

datetime

YYYY-MM-DD HH:mm:ss

2026-07-14 09:30:00

The required stored value is independent of the localized format displayed in the mobile user interface.

This topic also includes:

Default Date, Time, and Datetime Values in New FSM Mobile Records

When value is not configured:

Element Type

Default Behavior

date

Populates with the current date.

timeofday

Has no value.

datetime

Populates with the current date and time.

Leaving FSM Mobile Date, Time, and Datetime Elements Blank

Use the JSON null value to explicitly leave an element blank:

            "value": null 

          

This is the recommended form because it clearly indicates that the element has no initial value. FSM also treats "" and "null" as blank, but do not use these forms in new configuration: the first is an empty string and the second is text rather than the JSON null value.

When a value constraint uses an expression or template , every non-null result path must return the exact format required by the target element. Return null when the element should have no value.

            "value": "useCurrentDate.value ? now().date : null" 

          

Using Date and Time Helpers in FSM Mobile Expressions

Use now() in a mobile expression when a property needs the current date, time, or datetime.

Expression

Result Format

now().date

YYYY-MM-DD

now().time

HH:mm:ss

now().datetime

YYYY-MM-DD HH:mm:ss

Use format(...) to return the date, time, or datetime portion of a field value in the format required by the target property.

Expression

Result Format

format(field.value).date

YYYY-MM-DD

format(field.value).time

HH:mm:ss

format(field.value).datetime

YYYY-MM-DD HH:mm:ss

Use the helper member that matches the target element type. The helpers can be used in dynamic mobile resource block properties, including value, min, and max.

Related Topics

General Notices