How do we convert past date into future date?

Crystal Reports 2008: Convert past date to future date

  • Crystal version: Crystal Reports 2008 I have a report that I need to reference a past date (9/18/2011) and have any items with that date be "converted" to a future date (10/02/2011). One of my report sections is a group by this date. NOTE: I can't change the date on the DB. Any ideas? Currently: Date: Project: 9/18/2011 Project1 9/18/2011 Project4 9/18/2011 Project5 9/30/2011 Project2 10/2/2011 Project3 Convert the dates to look like this on the report: Date: Project: 9/30/2011 Project2 10/2/2011 Project1 10/2/2011 Project3 10/2/2011 Project4 10/2/2011 Project5

  • Answer:

    Create a new formula to group-by/display instead: if {Table.TheDate} = date(2011,09,18) then date(2011,10,02) else {Table.TheDate}

Jeremy F. at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

//{@date_field} //replace table.date_field with correct value IIf({table.date_field} = Date(2011,09,18), Date(2011,10,02), {table.date_field})

craig

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.