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"
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.
This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important