How can I extract the date from the “Media Created” column of a video file?

前端 未结 2 1842
执念已碎
执念已碎 2021-01-02 06:42

I need to extract the date from the \"Media Created\" column (highlighted in green in my the example photo below) using C#.

In my example, the \"Media Created\" and

2条回答
  •  半阙折子戏
    2021-01-02 07:42

    There are another way to retrieve data, using the Microsoft.WindowsAPICodePack.Shell namespace.

    ShellObject shell = ShellObject.FromParsingName(path);
    
    var data = shell.Properties.System.Media.DateEncoded;
    

提交回复
热议问题