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
Have all postmaster mail redirected to my email account
How do I configure use of a proxy with IIS SMTP?
Need command line full path directory listing
Keyboard mapping for excel spreadsheets.
Casting integer into date value within dynamic sql string
install nistnet and recompile kernel
Uninstall a program - Vista OS
IIS 5.1 and XP Pro, Virtual Domains...
Order by using the last 2 characters of a column value. SQL query
firewall using libpcap and raw socket