S
|
spoilar 2/21/2008 |
depending on what database you are using you could use the datediff() function in your query. |
C
|
ckapote author 2/22/2008 |
depending on what database you are using you could use the datediff() function in your query. in mysql it would be something like (assuming date1 is your starting date): datediff(Date1, Date2) as Date3 but in Transact-SQL it would be: datediff(day, Date1, Date2) as Date3
|
J
|
Jane 2/22/2008 |
Hi, $values["Date3"] = (strtotime($values["Date2"])-strtotime($values["Date1"]))/(606024); |
C
|
ckapote author 2/22/2008 |
Thanks It is working fine !!!!!!! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=26194&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> |