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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a Date

Status
Not open for further replies.

dbielenda

MIS
Nov 15, 2001
119
US
I have this formula to get a date:

ToText({PURP110B.EXREMB}, 0) + "/" + ToText({PURP100B.EXREDB}, 0) + "/" + ToText({PURP100B.EXREYB}, 0, '','' )

Th date is displayed on the report as : 1/8/2002

How can I have the date be displayed as : 1/8/02??

Thank you!
 
Dibielenda,

If PURP100B.EXRYB has contain 4 digits then try this one:
ToText({PURP110B.EXREMB}, 0) + "/" + ToText({PURP100B.EXREDB}, 0) + "/" + Right(ToText({PURP100B.EXREYB}, 0, '','' ),2)

Robert

 
Is your date really a text field? I don't understand why you don't just right click-format field. Software Support for Sage Mas90, Macola, Crystal Reports, Goldmine and MS Office
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top