将日期格式从一种格式更改为另一种格式 [英] changing date formates from one format to another
本文介绍了将日期格式从一种格式更改为另一种格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿伙计们...我想知道如何更改日期格式,例如2013年3月23日为23.3.2013
谢谢
解决方案
使用格式 [ ^ ]功能。< br $> b $ b
Dim myDate As 日期 = 日期。现在
Dim sDate 作为 字符串 =格式(myDate, dd.MM.yyyy)
Console.WriteLine(sDate)
hey guys...i want to know how to change date format for example 3/23/2013 to be 23.3.2013
thanks
解决方案
Use Format[^] function.
Dim myDate As Date = Date.Now Dim sDate As String = Format(myDate, "dd.MM.yyyy") Console.WriteLine(sDate)
这篇关于将日期格式从一种格式更改为另一种格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文