Microsoft
Software
Hardware
Network
Question : Juggling date formats
Hi expert,
Ive got this date picker that collects a date in this format (dd-mm-yyyy). But I need to store my value in the DB like yyyy-mm-dd
How can I change the value in PHP?
Thanks
Answer : Juggling date formats
Provided the date always comes from your input at dd-mm-yyyy (and not some other format)....and assuming you populate variable $inputDate with this value:
$sqlDateFormat=substr($inp
utDate,6,4
) . substr($inputDate,2,3) . "-" . substr($inputDate,0,2)
Random Solutions
What is "generic pup.g" ?
Demote 2003 DC with DC PROMO fails Access is denied.
Outlook hangs and retrieving data from server
FTP Error 503 bad sequence of commands
Multiple AJAX Updating Indicators
Best Practices For Upgrading To 2003 Native Domain?
Sending a signal to processes on a queue
Flash Preloading Images - reducing load time on website
shell32.dll compatible with win98
Finding the right permutation of a list of words