Question

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 ?

Was it helpful?

Solution

Set the expression as follows:

= "Printing Date "+ Now().ToString("MMdd/yyyy")

OTHER TIPS

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())}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top