|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Date picker
Hi there!
My JS is really terrible. And I'm using the date picker from the link below: http://www.mmwebs.com/nearmisssafetyform.asp The problem is that when I sent the date to update my table (in sql server), it doesn't like the format dd/mm/yyyy (way the users want to see it). So, is it possible to pass the same date selected by the users twice? One would pass the date as dd/mm/yyyy to a textbox and the other one would go to a input hidden with the format as yyyy-mm-dd. Thank you! |
|
#2
|
||||
|
||||
|
You'd need to use a server-side language to do this.... most languages have a split() function that allow you to break up strings at a certain character... the / for example.
|
|
#3
|
|||
|
|||
|
Thanks
I sorted it by using the format dd - month name -yyyy instead of dd/mm/yyyy.
Then, I used the convert function in sql server so that it inserts the date properly and indepent of the server configuration (US, Uk or another country, it works!) Thank you! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Date picker |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|