In mysql I have 2 date fields. Dates are stored in the format yyyy-mm-dd eg: 2004-11-26
I needed a condition where if the difference between the 2 date fileds is less than 5 days "NEW" appears. So i thought that if I convert the dates to a Julian dates I can compare them. The problem is that for any date the Julian date is always 364! I am converting it using
date("z",$Row['w_date'])
What is wrong with this? Thanks
Getting married in Malta?
Visit
I needed a condition where if the difference between the 2 date fileds is less than 5 days "NEW" appears. So i thought that if I convert the dates to a Julian dates I can compare them. The problem is that for any date the Julian date is always 364! I am converting it using
date("z",$Row['w_date'])
What is wrong with this? Thanks
Getting married in Malta?
Visit