Welcome Guest, Not a member yet? Register   Sign In
From dd/mm/YYYY
#3

[eluser]Bruno Fran├ža[/eluser]
Or...

Code:
function br2mysql($data) {
    return implode("-",array_reverse(explode("/",$data)));
}
function mysql2br($data) {
    return implode("/",array_reverse(explode("-",$data)));
}


Messages In This Thread
From dd/mm/YYYY - by El Forum - 09-03-2008, 04:20 AM
From dd/mm/YYYY - by El Forum - 09-03-2008, 04:25 AM
From dd/mm/YYYY - by El Forum - 09-03-2008, 08:27 AM
From dd/mm/YYYY - by El Forum - 09-03-2008, 08:35 AM
From dd/mm/YYYY - by El Forum - 09-03-2008, 01:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB