Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help formatting a date converted to text

Status
Not open for further replies.

elsenorjose

Technical User
Oct 29, 2003
684
US
Hello all,

I need help formatting a date field that has been formatted to text to display in m/dd/yy format. It is being converted to text because I also have some If/Thens going on.

I'm using CR XI. Thank you!

Complete formula:
Code:
If {usrIMP_Planning.ReportProjectType} = 'labeling' And {usrIMP_Planning.QPRequired} = 'Yes'
Then (If {usrIMP_Planning.LabelingLoc} = 'GSI SD' Then ToText(Date(shiftdatetime({usrIMP_Planning.ProjEndDate},",0",",720")) + 7)
Else If {usrIMP_Planning.LabelingLoc} = 'GSI Cork' Then ToText(Date(shiftdatetime({usrIMP_Planning.ProjEndDate},",0",",720")) + 21))
Else 'N/A'

Section I need formatted:
Code:
...ToText(Date(shiftdatetime({usrIMP_Planning.ProjEndDate},",0",",720")) + 7)
...
...ToText(Date(shiftdatetime({usrIMP_Planning.ProjEndDate},",0",",720")) + 21))

 
I found my own answer through a little more trial and error:

Code:
ToText(Date(shiftdatetime({usrIMP_Planning.ProjEndDate},",0",",720") + 7),"M/dd/yy")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top