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 stop relaying on rcpt to level
Windows Vista - I have to continually install Adobe Flash Player when on the internet
Installing WMI Windows Installer Provider using SYSOCMGR.exe
Access 2000 frontend, SQL Server 2005 tables, records changing during data entry!
how to open a port on cisco 1700
WINSTLE Error creating Office 07 msi ODSERV.exe not found
mod_rewrite case insensitive directories
SPS Bakup/Restore
How to read PDF files and display individual pages in Ruby on Rails?
Need help migrating to Access 2007 from 2003