Candrias77
04-07-2003, 05:48 AM
I am extracting a date from the database and it comes out in the format yyyy-mm-dd. In my page I would like to be able to refer to all three parts of this date as seperate variable.
I know how to format the current date using date() and I know how to format the results within the SQL select. My issue is reformatting a date from 'yyyy-mm-dd' to 'dd-mm-yy' or to just 'yyyy' etc.
Can this just done through php with some kind of function which does this?
Thanks
I know how to format the current date using date() and I know how to format the results within the SQL select. My issue is reformatting a date from 'yyyy-mm-dd' to 'dd-mm-yy' or to just 'yyyy' etc.
Can this just done through php with some kind of function which does this?
Thanks