14

all I am using Winform(C#) and RDLC MySQL. In that I try to show the date only in Tablex.

But this date format have time also. How to remove the time.

My Expression is,..

=Fields!date.Value

See my report below.

enter image description here

Thanks in advance?

I am tried =Fields!date.Value.ToString("dd/MM/yyyy") in expression But It through error,.. Error 1 An error occurred while validating. HRESULT = '8000000A'

Sagotharan
  • 2,586
  • 16
  • 73
  • 117

5 Answers5

28

You can use the FormatDateTime method:

=FormatDateTime(Fields!date.Value, DateFormat.ShortDate)

Or you can set the formatting in the properties window: enter image description here

nemesv
  • 138,284
  • 16
  • 416
  • 359
1

="Current Date:-"&Format(Now,"dd/MM/yyyy hh:mm tt") this is for current date and time

Ajay Dagade
  • 91
  • 1
  • 1
0

This worked for me:

=FormatDateTime(Now(), DateFormat.ShortDate)
Talha Imam
  • 1,046
  • 1
  • 20
  • 22
0
=FormatDateTime(Fields!dtStamp.Value, DateFormat.ShortDate)

The image shows the working of dateFormat.

The image shows the working of dateFormat

4b0
  • 21,981
  • 30
  • 95
  • 142
-1

formate(Fields!date.Value,"dd/MM/yyyy")

chirag
  • 39
  • 4