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
How to integrate JasperReports with Tomcat ?
Exporting Email addresses from public folder according to what category they are in.
How to install Symantec Mail security for Exchange
Imaging a Dual Boot setup using Norton Ghost 14
SMTP connect failed to exchange server 2007
How to change machine name in NT
Why do I have to re-establish internet connection in IE after every restart?
DTS programming - exit package
Replacing a 2003 Standard server with 2008 Enterprise
ADSI Script problem : How do I access/modify objects in different domain ?