|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
date verification
i m using the .js file to do all the validate functions.
<script language="JavaScript" src="nnn.js" type="text/javascript"> now i face the problem in validating the date. <tr> <td align="right">date</td> <td><INPUT TYPE="text" NAME="txtdate" onchange="js function()"> </td> </tr> my problem is how to write the function to verify date in my nnn.js file. thx. |
|
#2
|
||||
|
||||
|
How do you want your date to look?
05/08/31 2005/08/31 31/08/2005 08/31/2005 August 31, 2005 Wednesday, August 31, 2005 2005.08.31 08-31-05 [and so on, and so on] My point being, there are a million ways to write a date. The easiest way is to decide on one convention (perhaps localized to your audience) and encourage your users to enter the date that way. Another common workaround is to use a datepicker script, this way the user doesn't manually enter a date. |
|
#3
|
|||
|
|||
|
verify date
the format of my date is dd/mm/yyyy.
is it possible to get the datepicker script in that format (dd/mm/yyyy)? another question is , if i want user to key in the date (dd/mm/yyyy) manually, how to verify the date(with the function code in my .js file, seperately from the html) and set the format to dd/mm/yyy in the textfield(with / /). thanks. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > date verification |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|