Jun 23, 2015 04:44 AM
(This post was last modified: Jun 23, 2015 04:46 AM by SIM-1809171.)
Hey
I'm using -
along with some FTP shit in order to compare two datetime stanps. However, the FTP class returns the datetime in string format. When I try convert, it always gives 23:00:00 as the time. (or something similar)
Heres is the output -
![[Image: 9fab702dde87c08618cc29526e78c980.png]](https://i.gyazo.com/9fab702dde87c08618cc29526e78c980.png)
As you can see, its getting the date correct, but the time is all wrong.
Cheers
What can I do to sort this?
I'm using -
Code
FileInfo info = new FileInfo(Environment.CurrentDirectory + "/temp" + folder + "/" + filename);
DateTime datetimelocal = info.LastAccessTime;
string datetimedownloadtemp = dirlist[i].Substring(43, 12);
DateTime datetimedownload = Convert.ToDateTime(datetimedownloadtemp);
Console.WriteLine(datetimedownload);
Console.WriteLine(datetimedownloadtemp);
Console.WriteLine(datetimelocal);along with some FTP shit in order to compare two datetime stanps. However, the FTP class returns the datetime in string format. When I try convert, it always gives 23:00:00 as the time. (or something similar)
Heres is the output -
![[Image: 9fab702dde87c08618cc29526e78c980.png]](https://i.gyazo.com/9fab702dde87c08618cc29526e78c980.png)
As you can see, its getting the date correct, but the time is all wrong.
Cheers
What can I do to sort this?

