Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Formatting a date in client report

0 views
Skip to first unread message

BillE

unread,
Nov 19, 2009, 12:36:30 PM11/19/09
to
How do I format a date field in a client side Microsoft report (rdlc)?

I'm using VS2008, 9.0.30729.1 sp Windows forms project.

Unformatted, the dates in my report are displayed like this:
11/19/09 00:00:00

I want to display just the date, not the zeroes.

If I enter an expression in the value property for the report textbox like
this:

=Format(Fields!StartDate.Value, "D")
(as shown in http://msdn.microsoft.com/en-us/library/ms251668.aspx)

the report will display "D" instead of the formatted date. The same thing
happens with other format strings.

Why doesn't the date value get formatted properly?

Thanks
Bill


0 new messages