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

Stop datetime formula from showing time

Status
Not open for further replies.

leightur

IS-IT--Management
Jan 25, 2008
42
GB

I know this can be achieved in the main report by:

File / Options / Fields Date and Time however the time still shows when the report is run in a Crystal runtime.

here is my formula:

if {CARDS.DUE_DATE} = Datetime (1753, 01, 01, 00, 00, 00) or {?Show delivery date} = "No" then {@qty}

else {CARDS.DUE_DATE} & " " + {@qty}

Returns 30/01/2008 00:00:00
Would like to return just date.

Thanks,

Leigh
 
Try ToText({CARDS.DUE_DATE}, "dd/MM/yyyy"). You could probably also do it with Date({CARDS.DUE_DATE}), but ToText has a lot of interesting options.

You can also get rid of the time display from all fields using File > Options > Fields and adjusting the date-time display.

It also 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. In this case, it probably makes no difference.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top