Welcome Guest, Not a member yet? Register   Sign In
Need help with mdate please


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:

Then I 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?

Theme © iAndrew 2016 - Forum software by © MyBB