i want to calculate the year start from the working day until now. i can get the date of the working date but if i just want to get the year of the working date, is it possible? Can anyone help me? i not using the TIMESTAMP in declare date in database. i using DATE. thanks!!
Your question in the post is not clear to me, but as far question in your topic title, code is: $previous_year = intval(date("Y", $TIMESTAMP)) - 1; regards
Ha ha - yeh that doesn't make a great deal of sense! What do you mean by And what is the "working date"?!
thank jestep. I already can get the ans from your post. And hundred of appologize because of my broken english making reader feel difficulty to understand what i wanted. $year = date('Y',strtotime(' 0 Year',strtotime($date_from_db)));