Welcome Guest, Not a member yet? Register   Sign In
need with date input?
#11

[eluser]newbie boy[/eluser]
I got the solution:

in the model controller this must go:

Code:
$calendar = $data['day']."/".$data['month']."/".$data['year'];
      $date = explode("/",$calendar);
            
     $this->birthday    = date("Y/m/d",mktime(0,0,0,$date[1],$date[0],$date[2]));

hope this can help you too.


Messages In This Thread
need with date input? - by El Forum - 10-19-2008, 09:14 PM
need with date input? - by El Forum - 10-20-2008, 12:42 AM
need with date input? - by El Forum - 10-20-2008, 12:45 AM
need with date input? - by El Forum - 10-20-2008, 12:47 AM
need with date input? - by El Forum - 10-20-2008, 01:16 AM
need with date input? - by El Forum - 10-20-2008, 01:19 AM
need with date input? - by El Forum - 10-20-2008, 01:25 AM
need with date input? - by El Forum - 10-20-2008, 01:36 AM
need with date input? - by El Forum - 10-20-2008, 01:43 AM
need with date input? - by El Forum - 10-20-2008, 01:51 AM
need with date input? - by El Forum - 10-23-2008, 02:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB