Date comparison problem
5 Feb
1999
5 Feb
'99
6:45 a.m.
I'm trying to build an if statement by comparing two date values (BeginDate, EndDate)retrieved from a SQL query. If the two dates are equal, I just want to output the date once otherwise, I want to output both dates. I can't figure out how to do this. I have the following chunk of code, but it always evaluates false, even if the two dates are the same. <!--#if equal(BeginDate,EndDate)--> <!--#var BeginDate fmt=day--> <!--#var BeginDate fmt=Month-->.... [deleted] <!--#else--> <!--#var BeginDate fmt=day--> <!--#var BeginDate fmt=Month-->.... [deleted] <!--#/if--> Any help is appreciated. Jeff jeffniel@ix.netcom.com
9921
Age (days ago)
9921
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jeff Nielsen