![]() |
|
#1
|
|||
|
|||
Problems using checkdateHi guys
I am using checkdate() as part of a date validation for a form and it seems to work but only if the date is entered in the format MM/DD/YYYY. I need it to work with DD/MM/YYYY - is there any way round this? This is my code: PHP Code:
Last edited by Garth Farley : 12-Aug-2004 at 05:15.
Reason: Added PHP syntax highlighting
|
|
#2
|
|||
|
|||
|
Well as you know checkdate takes 3 arguments, MM, DD, YYYY in that order.
You've already split the string to get it's DD, MM, YYYY entries, so just plug them in the correct way: PHP Code:
GF |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Chaintech Geforce 5600 FX problems | bartster74 | Computer Hardware Forum | 8 | 04-May-2004 13:16 |
| Having problems displaying a line of variable length using winio. | warny_maelstrom | C Programming Language | 8 | 15-Feb-2004 11:56 |
| CD Burner Problems | Joe9995 | Computer Hardware Forum | 0 | 07-Feb-2004 10:47 |
| Apache - problems using PHP outside the intranet | ooandioo | Apache Web Server Forum | 6 | 04-Feb-2004 09:27 |
| Installation problems | arman | Apache Web Server Forum | 3 | 03-Feb-2004 12:02 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The