PDA

View Full Version : DateField.safeParse & M$ DateFormat



rooseveltdossantos
4 Jul 2010, 6:31 PM
Hello!

It's possible DateField.safeParse work with M$ DateFormat?

Inside of the method this code:

var parsedDate = Date.parseDate(value + ' ' + this.initTime, format + ' ' + this.initTimeFormat);

Doesn't call the correct parse function to M$ parse because the concat white spaces and the initTime property in the value to be parsed and concat white spaces and initTimeFormat property in the format.

How I can this work for M$ format's ?

Thank's

Roosevelt

dami
18 Sep 2010, 3:10 PM
Well, I ran into this too...
and looks like you didn't get any help so I've used the ugliest solution:


if (/[gGhH]/.test(format.replace(/(\\.)/g, ''))|| format==="M$") {