As daniel955 says, you should watch that capitalisation, "mm" is actually minutes in VB.NET as in "hh:mm:ss" e.g. "28/10/2013 11:30:44" is "dd/MM/yyyy hh:mm:ss" but if you had converted this date to "dd/mm/yyyy" you would get this string "28/30/2013" (28th day, 30 minutes, year 2013)

Hi Xerohomicide,

Doesn't the .Tostring("d"), (short date) depend on your system locale settings?

Sub Main()

    ' Use current time.

' ... Use a format.
' ... Write to console.
Dim time As DateTime = DateTime.Now
Dim format As String = "MMM ddd d HH:mm yyyy"
End Sub

May Tue 18 16:46 2010

This question has already been answered. Start a new discussion instead.