Click to See Complete Forum and Search --> : Basic question


yan
04-12-2003, 11:09 AM
Hi all,

Is there a method that I could determin if the value in a field is number or date or text? Thanks

khalidali63
04-12-2003, 11:14 AM
to find out if the value is a string or number use
isNaN(string) method.
For determining a date no thre is no direct way of finding it,you try to create a new date object if it is created its a date else its not
new Date(string)

Hope this helps

Cheers

Khalid