CodeIgniter Forums
Need help with mdate please - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Need help with mdate please (/showthread.php?tid=57839)



Need help with mdate please - El Forum - 04-16-2013

[eluser]Cgull[/eluser]
Hello,

Using codeigniter 2.1.2 and Bootstrap

I have a form where the user can pick a date with datepicker.

When I submit the form, the input post shows this value:
'22/04/2013'

Then I code:
Code:
mdate('%Y-%m-%d', strtotime($this->input->post('from_date')))

And I get: '2013-04-16' which is today's date.

Why is that?