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

Format Date in String

Status
Not open for further replies.

mtownbound

Technical User
Jan 28, 2002
293
US

I need to format a date field in my formula field. I'm running a mimimum, maximum to placed in the report header, something to the effect of:

"Date Range: " + ToText(Minimum({Database.Date Field}))
"to " + ToText(Maximum({Database.Date Field}))

The only snag is that the date is being displayed as the default "7/13/2011 12:00AM", but I need to see "7/13".

Any ideas??


Thanks!!!
 
For 7/13

totext({Sheet1_.Posting Date}, 'M/dd')

For 07/13

totext({Sheet1_.Posting Date}, 'MM/dd')

For 7/13/2011

totext({Sheet1_.Posting Date}, 'M/dd/yyyy')

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top