Error evaluating embedded expressions: How to get just the date part from the datetime in telerik report

StackOverflow https://stackoverflow.com/questions/16543642

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 ?

Était-ce utile?

La solution

Set the expression as follows:

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

Autres conseils

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())}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top