to create unique reference i had below code in vb6
Dim UNKREFBATCH As String
UNKREFBATCH = "B" & Format(Date, "MMDD") & Format(Time, "HHMMSS")
but the same is not giving correct result in vb.net
Dim UNKREFBATCH As String
UNKREFBATCH = "B" & Format(Date.Now, "MMDD") & Format(DateTime.Now, "HHMMSS")
MsgBox(UNKREFBATCH)
instead of minutes its showing month and showing DD or SS for "DD" or "SS"
How can i get same result as in vb6