Modifying the Date Format of Web Calendars

Follow

The Calendar web widget has been updated in version 4.7 since the old calendar used depreciated features. Please see the Calendar widgets updated in default pages section of the Ares 4.7 Web Page Changes article for the web page changes to update the calendar. 

By default, Ares formats dates in the client and web in the US format of mm/dd/yyyy and formats time using a 12-hour clock. The Ares client and dll also support non-US regional date and time formats. Ares allows you to display and use dates formatted in region-specific settings, such as dd/mm/yyyy, and times formatted using a 12-hour clock. If you use a date/time format other than the default, it will reflect in the client in all lists and grids as well as in forms and calendar popups. The Ares client and dll use SQL server time whenever they need to reference date and time. This synchronization ensures that all components should be consistent.

Date and Time Format

The date and time format shown on your web pages is specified in the dll by the server where the dll is located. If you use a date format other than mm/dd/yyyy, you will need to modify the calendar popups in the web to reflect that format.

Modifying the Calendar Popups

For Ares version 4.7, you can modify the date format in web calendars by editing the arescal.js javascript file. It is located in the js folder in your Ares web pages. Change the date format string, located on lines 71 and 72, to reflect the date format you want to use. The new format will now display when the popup calendars are used in the Ares website.

yearlyDate = $.datepicker.formatDate('mmdd', dateToCheck);
floatingDate = $.datepicker.formatDate('yymmdd', dateToCheck);

For Ares version 4.6, please use the xc2_default.js javascript file located in the js folder in your Ares web pages. Change the date format string (xcDateFormat), located at the top of the form, to reflect the date format you want to use. (Note that this should be the ShortDateFormat of the server's locale.) 

// date format
// -----------
xcDateFormat="dd/mm/yyyy";
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.