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

Converting Date to proper format in formula 1

Status
Not open for further replies.

Delphin

Programmer
Nov 27, 2001
134
US
I have a formula the shows 2 dates from a table:
Date ({invdetail;1.InvStartdt}) & " to " & date({invdetail;1.InvEndDt})

Since I cannot format the dates to look like 01/02/04 to 01/31/04 via text formatting, how do I get them to stap printing out as 1/2/04. all of the conversions I know either have too many arguments or not enough.
 
Why can't you use totext()? Try:

totext(Date({invdetail;1.InvStartdt}),"MM/dd/yy") + " to " +
totext(date({invdetail;1.InvEndDt}),"MM/dd/yy")

-LB
 
thanks... didn't even think about converting it to text first.

Billy Ballard

For in the past, Lies the future.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top