On 17 Sep 2006 in macromedia.dreamweaver.appdev, stratcat900
wrote:
> I'm using the following to try and establish the number
of days
> difference between dates from two different record sets.
The result
> using test data should be 15, but I get 0. No code error
message,
> but no accurate result either. I've checked the two date
values
> involved, and they're returning the proper data in the
proper
> format...just can't get the DateDiff function to work in
the session
> variable...any help greatly apprciated.
>
> Code:
>
> <%Session("Lead")= DateDiff(
,
> [rsSurvey.Fields.Item("tblShipDat").Value],
> [rsOrder.Fields.Item("tblValDat").Value])%>
<%Session("Lead")= DateDiff(,
The interval needs to be a string:
<%Session("Lead")= DateDiff("d",
--
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/email.php