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

Date Formating

Status
Not open for further replies.

msflinx

Programmer
Mar 11, 2003
16
US
I'm feeling really stupid right now. I have a text box in the group footer that is a date field. Where do I put this expression,

=format(fields!activitydate.Value, "dd-MMM-yy")

so that it affects my field?

I have tried these boxes in the Properties box:
1) Format field
2) Value box

The format field doesn't effect the preview of the field at all. The Value box makes the preview field display as the literal dd-MMM-yy.

Thank you
 
Figured it out. My data was coming in as a string, not a date. Had to change the expression to:

=Format(cDate(Fields!activitydate.Value),"dd-MMM-yy")

in the value property and all is well.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top