Dim oldDateformat As String = DateTime.DateFormat
DateTime.DateFormat = "yyyy-mm-dd hh:mm:ss"
Log("sCheckin 2 " & sCheckIn)
sCheckIn = Crsr.GetString2(2) '** Get correct from MSSQL DB as "2020-03-02 06:20:00"
Dim lCheckIn As Long = DateTime.DateParse(sCheckIn)
DateTime.DateFormat = "dd MMM yyyy HH mm"
Log("Tag: " & DateTime.Date(lCheckIn))
Log("1 " & DateTime.time(StartTime))
Log("2 " & DateTime.time(lCheckIn))
DateTime.DateFormat = oldDateformat 'Last but not least; set DateFormat back to it´s old Value!
Dim timeToDate As Period = DateUtils.PeriodBetween(lCheckIn, DateTime.Now)
Log("Diff " & timeToDate.Hours & ":" & timeToDate.Minutes)