On the frontend, Sitefinity CMS supports the following ways for calculating date and time:
By default, the date and time formats used by the date and time fields are h:mm a and M/dd/yyyy for time and date, respectively.
h:mm a
M/dd/yyyy
You change the date and time settings by modifying the config.json file, located in the ~\SitefinityWebApp\AdminApp\ folder:
config.json
~\SitefinityWebApp\AdminApp\
You do this by modifying the dateTimeFormat object, which has the following properties:
dateTimeFormat
You can configure the following:
By default, this property is set to false, which means that the date and time are calculated server-side.
false
If you set it to true, then date and time is calculated client-side.
true
This property can be short, medium or long. If this property is not provided and useBrowserLocale is true, it defaults to short.
short
medium
long
useBrowserLocale
This property accepts the following values:
browserLocaleFormatWidth
"h:mm:ss a"
"MMMM d, y"
"MMM d, y"
"h:mm a"
"M/d/yy"
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important