c# - Format DateTime.Now -


This is a strange request.

I'm looking at C # to compare twice.

I have:

  DateTime SystemDate = DateTime.NABEdimenets (-15); // I think the time is reduced by 15 minutes   

Then I am reading from a Fedora server with an FTP server that has a date and time that I As Stream I am reading and converting to a date time

  2011-03-17 09: 00: 18.000000000 +0000   

Then I parse it:

  compare date = time. Purse (streamer);   

My question is because how can I format systemdates in the same format as I have parse in comparative? I know that you can format datetime but I have seen all those sites which are not in this format so far.

Thank you in advance, if you think I'm missing anything, do not hesitate to comment :) There is no need to format < systemDate , Because you have already parse date from FTP. Server in a dateTime . You can compare the systemDate to compare date .

Comments