Re: vb.net GetFileInfo LastWriteTime in local time - need UTC
Use the
https://learn.microsoft.com/en-us/dotnet/api/system.datetime.touniversaltime
DateTime.ToUniversalTime
method:
Session.GetFileInfo(sPathFile).LastWriteTime.ToUniversalTime().ToString("MM/dd/yyyy")
https://learn.microsoft.com/en-us/dotnet/api/system.datetime.touniversaltime