Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@xsited1 /today

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
Something went wrong with that request. Please try again.