Modifying the Date Format of Web Calendars

Follow

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

To modify the date format in web calendars, edit the xc2_default.js java script file. It is 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.) The new format will now display when the popup calendars are used in the Ares website.

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

Comments

0 comments

Article is closed for comments.