Its Friday afternoon, looks like the Friday afternoon bug . Here is the code:
Var d As DateTime = DateTime.Now
Var nextBackup As DateTime
Var BackupTime() As String = mBackupTime.Split(":") ' For example "23:45" in mBackupTime
nextBackup = New DateTime(d.Year, d.Month, d.Day -1, BackupTime(0), BackupTime(1)) ' Boom
I get “There is more than one method with this name but this does not match any of the available signature”.
The doc says one of the constructor is Constructor(Year as Integer, Month as Integer, Day as Integer, hour as Integer = 0, minute as Integer = 0, second as Integer = 0, nanosecond as Integer = 0, timeZone as TimeZone = Nil)
What I am doing wrong ???
Thanks