Aug 11, 2004 #1 gcole Programmer Aug 2, 2000 390 US Can anyone suggest a function or coding to add/subtract 1 day from a date in 7.0. It does not have the DateAdd function.
Can anyone suggest a function or coding to add/subtract 1 day from a date in 7.0. It does not have the DateAdd function.
Aug 11, 2004 #2 vidru Programmer Jul 18, 2003 2,113 US Create a test formula to see if this will work for you: // @Test // Add a day to the Current Date CurrentDate + 1 -dave Upvote 0 Downvote
Create a test formula to see if this will work for you: // @Test // Add a day to the Current Date CurrentDate + 1 -dave
Aug 11, 2004 Thread starter #3 gcole Programmer Aug 2, 2000 390 US That adds 24 hours as my date is DateTime. Upvote 0 Downvote
Aug 11, 2004 #4 vidru Programmer Jul 18, 2003 2,113 US OK, upon further review, I can see the limitations of Date function in CR 7: http://support.businessobjects.com/communityCS/TechnicalPapers/scr567_datetimefunctions.pdf.asp Try this: CDate({Table.YourDateTimeField}) + 1 or CDate({Table.YourDateTimeField}) - 1 Those should ignore the Time portion of the Date/Time field. -dave Upvote 0 Downvote
OK, upon further review, I can see the limitations of Date function in CR 7: http://support.businessobjects.com/communityCS/TechnicalPapers/scr567_datetimefunctions.pdf.asp Try this: CDate({Table.YourDateTimeField}) + 1 or CDate({Table.YourDateTimeField}) - 1 Those should ignore the Time portion of the Date/Time field. -dave