Reputation: 3721
Iam new in codeigniter
. I tried to convert a user input date with format dd-mm-yyyy
to mysql format yyyy-mm-dd
. But I got only the functions here https://www.codeigniter.com/user_guide/helpers/date_helper.html. Is there any way to do this? Please help. Thanks in advance..
Upvotes: 0
Views: 1037
Reputation: 1837
php can do that, you don't need codeigniter helper
echo date('Y-m-d', strtotime('18-10-2014'));
Upvotes: 2