DateTime

Overview

Widgets in this category help you manage date and time values.

Date

Use this widget to edit the date value. A date picker is provided to select the date.
Readonly view:
Edit view:
Form view:
Configuration:
The date can be formatted with configuration.
{
"format": "YYYY-MM-DD", # (optional)
# default to "YYYY-MM-DD"
# check the format detail at https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/
}
Import value:
Date in the format of YYYY-MM-DD. For example: 2020-02-02

Time

Use this widget to pick a time. Currently, Labii supports time in 30-min intervals.
Readonly view:
Edit view:
Form view:
Configuration:
The time can be formatted with configuration.
{
"format": "HH:mm:ss", # (optional)
# default to "HH:mm:ssj"
# check the format detail at https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/
}
Import value:
Time in the format of HH:mm. For example: 14:20

DateTime

Use this widget to pick a date and time. This widget is a combination of the Date and Time widget.
Readonly view:
Edit view:
Form view:
Not supported
Default value:
{
"date": "2018-01-01",
"time": "10:23"
}
Configuration:
The DateTime can be formatted with configuration.
{
"format": "YYYY-MM-DD HH:mm:ss", # (optional)
# default to "YYYY-MM-DD HH:mm:ss"
# check the format detail at https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/
}
Import value:
Not supported

Appointment

Use this widget to set an appointment and add the appointment calendar. Currently, Google calendar is supported.
Readonly view:
Edit view:
Form view:
Not supported
Default value:
{
"date_start": "",
"time_start": "",
"date_end": "",
"time_end": ""
}
Import value:
Not supported

TimeStamp

This widget will generate an automatic time stamp in the ISO format. Click the reload button to refresh the timestamp.
Readonly view:
Edit view:
Not supported
Form view:
Not supported
Configuration:
{
"should_auto_update_when_empty": true, # (optional) - default to true
# If true, the widget will perform live calculation when the data is empty
# If false, the results will not be calculated on default
"format": "YYYY-MM-DD", # (optional)
# check the format detail at https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/
}
Import value:
Not supported

Timezone

The widget displays the current date and time of a particular time zone. CRM can use it to reflect the customer's current time.
Readonly view:
Edit view:
Form view:
Same as the edit view.
Configuration:
{
"format": "YYYY-MM-DD HH:mm:ss", # (optional)
# default to "YYYY-MM-DD HH:mm:ss"
# check the format detail at https://momentjscom.readthedocs.io/en/latest/moment/04-displaying/01-format/
}
Import value:
time zone text, learn more at https://en.wikipedia.org/wiki/Lists_of_time_zones
Last modified 11d ago
Copy link
On this page
Overview
Date
Time
DateTime
Appointment
TimeStamp
Timezone