WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Date Masking / Validation DHTML, David Christiansen, October 6, 2003
     Re:Date Masking / Validation DHTML, Erik Arvidsson, October 9, 2003
         Re:Date Masking / Validation DHTML, Ron (thewebkid), October 17, 2003
             Re:Date Masking / Validation DHTML, Erik Arvidsson, October 17, 2003

Subject: Re:Date Masking / Validation DHTML From: Erik Arvidsson Date: October 17, 2003
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.

erik


Actually the JScript date object gives you this for free.
var oDate = new Date('10/4/2003');
or
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.
Cheers,
Ron

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 :'( )

erik


Hi all,
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,
Thanks
David






Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX