Format Date in Bind Statement inside a ListView

后端 未结 2 1736
轻奢々
轻奢々 2020-12-11 02:36

is there a way that I can format a Date binded in a ListView?

I have this snippet of ListView


    <         


        
相关标签:
2条回答
  • 2020-12-11 03:14

    This should work

    Text='<%# Bind("DateOfBirth", "{0:MMM dd, yyyy}") %>'
    
    0 讨论(0)
  • 2020-12-11 03:30

    Should be like...

    Text='<%# Bind("RequiredDate", "{0:MMM dd, yyyy}") %>'
    
    0 讨论(0)
提交回复
热议问题