3.0 beta 2

v2.0 Date format question

I got a trouble on date formatting...

The script -
var date = new AW.Formats.Date;
date.setTextFormat("dd mmm yyyy");

The date [xml] -
This works:

But , what if the time is

the second does not work due to the 0.99 is not zero filled to 7 digits.

What can i do to make the second one works too?
Remark: the second one's time is retrieved from mssql.
December 17,
I guess this is AW bug (or lack of flexibility :-)

You should change the following regexp

var xmlExpr = /^(....).(..).(..).(..).(..).(..)........(...).(..)/;

in /source/lib/formats/date.js
Alex (ActiveWidgets)
December 19,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.