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

后端 未结 7 1884
独厮守ぢ
独厮守ぢ 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 12:10

    You could decompose the date into it's constituent parts and then concatenate them together like this:

    MsgBox(Now.Day & "/" & Now.Month & "/" & Now.Year)
    
    0 讨论(0)
提交回复
热议问题