<%# Convert.ToDateTime(Eval("Posted")).ToShortDateString() %>
It tells me Invalid Expression term ')'
. The code still runs fine though, it's just annoying.
This is the full markup:
<p>
Last Updated:
<%# Convert.ToDateTime(Eval("Posted")).ToShortDateString() %>
</p>
Tried deleting it and retyping it out (not copy and paste)?
This sometimes works for me when I get obviously incorrect errors in the editor.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.