:: Forum >>

Date formatting in grid - AM/PM

I need to display time in US format
10/27/2006 10:12 AM
Is there a way to take the AM/PM part into account, so the sorting will work right?
Monday, January 8, 2007
does anyone know how to do that?
Tuesday, January 16, 2007
Use AW.Formats.Date:
James Crow
Tuesday, January 16, 2007
The current AW.Formats.Date class does not handle 12h time format. You have to manually patch textToValue method -

var date = new AW.Formats.Date;

date.textToValue = function(s){
    return Date.parse(s);
Alex (ActiveWidgets)
Wednesday, January 17, 2007

This topic is archived.

Back to support forum

Forum search