![]() |
date Format code help while posting info in to mysql
HI frnds,
can any one please help me to post dd-mm-yyyy date format to Mysql which is yyyy-mm-dd. I am struggling lot to solve this but could not able to success it.... my php code is : Code:
Regards, Nani |
Well, since you don't mention which of these it is all I can give is an example. dd-mm-yyyy is valid in php for a date format: http://ca1.php.net/manual/en/datetime.formats.date.php so you can use it in strtotime or dateTime classes.
PHP Code:
|
Quote:
Dont mind can you be more specific with example code I have posted .......I am a beginner and trying to understand a lot but it became tuff for me :confused: .... so please help me. In the above code I have created a frontend form for the Creation_Date & Resolved_Date which takes dd-mm-yyyy but when i am posting it should post to database as yyyy-mm-dd.. Regards, Nani |
Quote:
Like this: PHP Code:
PHP Code:
|
| All times are GMT +1. The time now is 01:21 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.