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

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

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

  
            
                &l         


        
5条回答
  •  Happy的楠姐
    2021-02-19 20:57

    Use "{0:d}" for short date format. Try

     Text='<%# Eval("paid_priviledge_date","{0:d}") %>'
    

    and

    Text='<%# Eval("date_of_joining", "{0:d}") %>'
    

提交回复
热议问题