Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Asp.net With C#. and use in RDLC Report. How to change date format
current date is comming DATE: 19/4/2012


the code of date:
= FormatDateTime(First(Fields!DATE.Value, "INVOICE_SP_VIEW_INVOICE"),DateFormat.ShortDate)
plz help me.
Posted
Updated 20-Apr-16 4:29am

You can use custom formatting on the date field:
Use something like:
VB
=CDate(First(Fields!DateFrom.Value, "MyDataReport")).ToString("dd/MM/yyyy")


For details look here:
Date and Time Format Strings[^]

For overall formatting:
Format Types[^]
 
Share this answer
 
Comments
Venkata Sailendra Kumar 16-Jul-14 10:57am    
Thanks mate!! Got the solution
C#
=Cdate(First(Fields!DATE.Value, "chinaDataSet1_SP_VIEW_PERFORMA_INVOICE")).ToString("MM/dd/yyyy")
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900