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

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

質問

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())}
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top