Subject | Re: [firebird-support] dates difference function |
---|---|
Author | Ivan Prenosil |
Post date | 2007-04-03T11:15:26Z |
> Hi! I'm trying to calculate a dates difference in a stored procedure in InterBase 7.5:Do you mean you store dates as strings ??
> given two dates in dd/mm/yyyy format
> I need its difference in days,Just subtract them.
> like this one in SQL 2000:
>
> set @Days = (SELECT DATEDIFF(DAY,@val1, @val2))
>
> is there a predefined function to do that?
Days = Date1 - Date2;
Ivan