-
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
C:\Users\clu\AppData\Local\Temp\Fusion++\2020.04.29.07.47.14.7452\Default\Everything.exe
can be convert to
C:\Users\clu\AppData\Local\Temp\Fusion++\2020.04.29.15.47.14.7452+0800\Default\Everything.exe
private const string DATE_FORMAT = "yyyy.MM.dd.HH.mm.ss.ffffzzz";
var folder=DateTime.Now.ToString(DATE_FORMAT).Replace(":", string.Empty);
Path = System.IO.Path.Combine(TopLevelPath, folder);
The following parse datetime will not work. maybe write a custom method to parse the time.
if (DateTime.TryParseExact(result, UTC_DATE_FORMAT, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.AssumeUniversal, out DateTime date))
result = date.ToShortDateString() + " " + date.ToLongTimeString();
Metadata
Metadata
Assignees
Labels
No labels