||View All MessagesBack to WebFX|
It is kind of ironic that the Date object takes a US date format string but it does not work with an ISO date string :'(|
I guess the Netscape people did not think when they designed the Date object. But it is odd that the ECMA did not change this behavior, or at least added a requirement to support ISO formatted date strings.
Actually the JScript date object gives you this for free.
var oDate = new Date('10/4/2003');
var oDate = new Date('Oct 4, 2003');
Obviously, you can also write your own parser to trap certain cases.
I have an unpublished (kinda beta) viewlink that I would be willing to share if you are interested. My stupid website is way out of date )c: Some webkid.
From: Erik Arvidsson
Sent: October 9, 2003
Subject: Re:Date Masking / Validation DHTML
"04/10/2003"? Is that the 10th of April or 4th of October? To learn how to writes dates correctly look at http://www.cl.cam.ac.uk/~mgk25/iso-time.html
I think Ron "The Web Kid" Gilchrist has a control like this. See http://www.thewebkid.com (It was down when I checked :'( )
Does anyone know of a reliable and configurable....basically a nice example of a date validation and masking. I require to mask user input into a HTML text field to form a properly formatted date value, for example 04/10/2003. The date format for those that can't guess is UK not US.
Does Bindows address this ?
All help will be muchly appreciated,