Set the expression as follows:
= "Printing Date "+ Now().ToString("MMdd/yyyy")
题
I want to get the printing date in my telerik report so i bind like this :
Printing date{Format("{0:MM/dd/yyyy}", Now())}
but i face run time error like this :
Error evaluating embedded expressions: Unexpected token inside an expression at index 23
How to get just the date part from the datetime in my report ?
解决方案
Set the expression as follows:
= "Printing Date "+ Now().ToString("MMdd/yyyy")
其他提示
Replying to an old question, but here it is anyway. You needed to escape the embedded curly braces
Printing date{Format("{{0:MM/dd/yyyy}}", Now())}