开发者

VB.net date displaying in m/d/yyyy if date or month is less than 10

开发者 https://www.devze.com 2022-12-17 21:52 出处:网络
H开发者_开发百科ow I can I display it always in mm/dd/yyyy in vb.netYou could try dateValue.ToString(\"MM/dd/yyyy\")

H开发者_开发百科ow I can I display it always in mm/dd/yyyy in vb.net


You could try

dateValue.ToString("MM/dd/yyyy") 

Have a look at

Custom Date and Time Format Strings

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号