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

Format date issue 1

Status
Not open for further replies.

munchen

Technical User
Aug 24, 2004
306
GB
I have the following date formula:

minimum({tblA.date}) & ' - ' & maximum({tblA.date})

This is currently displaying data like so:

01/01/2007 - 30/06/2007

How can I make the field display like so:

01/01/07 - 30/06/07

By making year yy instead of yyyy?
 
Try
Code:
ToText(minimum({tblA.date}), "dd/MM/yy") & ' - ' & ToText(maximum({tblA.date}), "dd/MM/yy")
It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Madawc

Worked perfectly. Many thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top