Hi all,
I have a database field of the type date. As I understand it, it will store the date in the format 2003-09-01 (Y-M-D), what I would like to know is this:
Is there a quick and easy way to take that date and to split it into component parts?
I think I remember reading about an explode() function that may do the trick, but am not sure.
Tried to use the explode() function by doing this;
explode("-", $Date_From);
echo "</table>";
echo $Date_From[1];
echo "<BR>";
echo $Date_From[2];
echo "<BR>";
echo $Date_From[3];
echo "<BR>";
echo $Date_From;
The result I got was this:
3
2003-09-01
Can anyone explain what's going on?
😕