MySQL Forums
Forum List  »  InnoDB

Re: Date calculations with Varchar fields
Posted by: William Chiquito
Date: October 18, 2008 04:24PM

Hi mark,

Try:
SELECT DATEDIFF(CONVERT(outdate, DATETIME), CONVERT(indate, DATETIME)) AS DaysDiff FROM tablename;

Options: ReplyQuote


Subject
Views
Written By
Posted
5607
October 13, 2008 03:11PM
Re: Date calculations with Varchar fields
2453
October 18, 2008 04:24PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.