oh how frustrating ... date()
Posted: Mon Dec 13, 2004 9:18 pm
am getting to the point to tossing my laptop out the window. This seems to be simple and it works and it doesn't. All am trying to do is to get current date and put that in to the database , also i want to take the same date and add 14 days to it. here is what i do ...
to get current date i use and to get todays date plus 14 day i use .
When i print these to the screen i get correct dates and it works just fine. now when i put these dates in the db and try to explode them to the format i need i get 31 12 69.
To explode the date i use $var is date from the database.
Please help ...
Greg
to get current date i use
Code: Select all
time();Code: Select all
mktime(0,date("i"),date("H"),date("m"),date("d")+14,date("Y"))When i print these to the screen i get correct dates and it works just fine. now when i put these dates in the db and try to explode them to the format i need i get 31 12 69.
To explode the date i use
Code: Select all
date('d m y' , $var)Please help ...
Greg