Display date in dd/mm/yyyy format in vb.net

后端 未结 7 1881
独厮守ぢ
独厮守ぢ 2021-01-11 11:08

I want to display date in 09/07/2013 format instead of 09-jul-13.

Dim dt As Date = Date.Today

MsgBox(dt)
7条回答
  •  隐瞒了意图╮
    2021-01-11 11:49

    if you want to display date along with time when you export to Excel then you can use this

    xlWorkSheet.Cells(nRow, 3).NumberFormat = "dd/mm/yy h:mm AM/PM"
    

提交回复
热议问题