Oct 4, 2003 #1 alvintse Programmer Aug 1, 2003 66 US Does anyone know any function in Crystal Reports 9 that can tell how many days on Feb for any year? Thanks.
Does anyone know any function in Crystal Reports 9 that can tell how many days on Feb for any year? Thanks.
Oct 4, 2003 1 #2 lbass Technical User Feb 9, 2002 32,816 US The following will return the correct number of days for February, where {?year} is a discrete number parameter: datediff("d",Date({?year}, 02, 01), Date({?year}, 03, 01)) -LB Upvote 0 Downvote
The following will return the correct number of days for February, where {?year} is a discrete number parameter: datediff("d",Date({?year}, 02, 01), Date({?year}, 03, 01)) -LB
Oct 4, 2003 Thread starter #3 alvintse Programmer Aug 1, 2003 66 US Thanks a lot!! That's pretty tricky! Upvote 0 Downvote
Oct 5, 2003 #4 chelseatech Instructor Aug 25, 2001 1,812 NZ Or you could try Day(Date({?year},3,1)-1) This will work for any version of CR. DateDiff (in the example above) is only available from Cr8.0 onwards. Editor and Publisher of Crystal Clear http://www.chelseatech.co.nz/pubs.htm Upvote 0 Downvote
Or you could try Day(Date({?year},3,1)-1) This will work for any version of CR. DateDiff (in the example above) is only available from Cr8.0 onwards. Editor and Publisher of Crystal Clear http://www.chelseatech.co.nz/pubs.htm