Click here to Skip to main content
15,916,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
iam using this expression to display the current date in textbox using rdlc report.

=CDate(Today()).ToString("MM/dd/yyyy")

output is : 07-01-2014

but i need 'july 01,2014' formate.

what is the expression for getting this output 'july 01,2014'
Posted
Updated 24-Jan-17 19:33pm

=CDate(Today()).ToString("MMM dd,yyyy")
 
Share this answer
 
Comments
prasunjeet 15-Mar-15 16:19pm    
no working showing error imporve your ans
Hello ,
Refer : Try this link
thanks
 
Share this answer
 
Comments
prasunjeet 15-Mar-15 16:20pm    
here talking about RDLC not for crystal report
Try This

=formatdatetime(today)


and also with fomat

=format(CDate(today), "dd MMM yyyy")
 
Share this answer
 
v3
Comments
Member 12962872 25-Jan-17 1:44am    
right click the textbox go to properties select the date format as per the requirement...

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