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.
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'
You can use the FormatDateTime method:
=FormatDateTime(Fields!date.Value, DateFormat.ShortDate)
Or you can set the formatting in the properties window:
="Current Date:-"&Format(Now,"dd/MM/yyyy hh:mm tt") this is for current date and time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With