How to format a time-stamp to show the date only in a grid view

前端 未结 5 2391
南方客
南方客 2021-02-19 20:27

In an aspx page I am binding the labels like this:

  
            
                &l         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 20:42

    You can specify format strings for the eval statement:

    Eval("date_of_joining", "{0:dd/MM/yyyy}")
    

提交回复
热议问题