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
To leave a date or datetime element blank when creating a record, explicitly set value to an empty string:
"value": ""
The empty string is the recommended blank value because it matches the stored blank representation for these element types. FSM Mobile also normalizes null to an empty string. If value is omitted, date uses the current date, and datetime uses the current date and time.
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.