this format wont retrieve data from db (mysql)
01-01-2005
you need to convert to Y-m-d
am i getting your problem ? :D
If you want to handle both, can't you just do that in your controller (or model or closure).
something like:
list($one, $two, $three) = explode('-', $date, 3);
$day = 0;
$month = 0;
$year = 0;
if ($one > 100) {
$day = $three;
$month = $two;
$year = $one;
} else {
$day = $one;
$month = $two;
$year = $three;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community