GetLastWriteTime returning 12/31/1600 7:00:00 PM

前端 未结 6 1733
栀梦
栀梦 2020-12-02 01:50

I am using the following code to write the Date Modified time of a Directory to a label

string selectedPath = comboBox1.SelectedItem.ToString();
DateTime las         


        
6条回答
  •  醉话见心
    2020-12-02 02:17

    first thought is that of is your time set correctly. Second thought is to right click on that folder and see what it says in properties. Lastly I'd make new test folder and run that bit of GetLastWriteTime tests on it so you know what you are getting back.

提交回复
热议问题