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