Skip to content

Instantly share code, notes, and snippets.

@xsited1
Created June 26, 2014 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xsited1/f2e675445016a4b976a8 to your computer and use it in GitHub Desktop.
Save xsited1/f2e675445016a4b976a8 to your computer and use it in GitHub Desktop.
Dim today, year, month, day As String
year = DateTime.Today.Year.ToString
If year.Length = 1 Then
year = "0" + year
End If
month = DateTime.Today.Month.ToString
If month.Length = 1 Then
month = "0" + month
End If
day = DateTime.Today.Day.ToString
If day.Length = 1 Then
day = "0" + day
End If
today = String.Concat(year, month, day)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment