Created
April 3, 2019 22:47
-
-
Save ps-przemekaugustyn/2c1f28ce3848ad3a0bc59f81d7f45d08 to your computer and use it in GitHub Desktop.
Datetime from .net assembly version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string version = "1.0.7027.38402"; | |
var split = version.Split(".".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); | |
var major = int.Parse(split[2]); | |
var minor= int.Parse(split[3]); | |
var date = new DateTime(2000, 1, 1).AddDays(major).AddSeconds(minor*2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment