This article mainly introduces the ASP.net page in the time format of the example, the need for friends can refer to the
The ASP.net page displays the time in eval as the "YYYY-MM-DD" format code as follows: <table> <tr> <td style= "Width:273px;color: #105db5;" Vali gn= "Top" > "* * platform" <a href= "javascript:void (0)" style= "Color: #6c6c72" title= "<%# Eval (" Filen Ameall ")%> ' onclick= ' Openpreview (<%# eval (" Fileid ")%>) ' ><%# eval (' FileName ')%></a></td > <td style= "padding-right:0px;color: #888;" valign= "Top" ><%# convert.todatetime (Eval ("Filecreatedate") ). ToString ("Yyyy-mm-dd")%></td> </tr> </table> is returned as an object type after the eval binding and cannot be converted directly into a date format, as in code As follows: <%# Convert.todatetime (Eval ("Filecreatedate")). ToString ("Yyyy-mm-dd")%> display the time as "yyyy-mm-dd" form;