I'm trying to format the output from the Now() function (current date and time).
I want to create a string of the form "yyyy-mm-dd hh.mm".
Here's my code:
Dim strBackupFolder As String
'create subfolder with date and time information
strBackupFolder = Format(Now(), "yyyy-mm-dd hh.mm")
But at 2.35 pm on 1 September 2015, the output I get is "2015-35-01 02.35", not the expected "2015-09-01 02.35".
I'm running Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework