New assembly file version (with year)

This commit is contained in:
Victor Hurdugaci 2015-03-30 16:19:42 -07:00
parent 188f5e8328
commit c354f0a8ba
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ functions
// If the computer date is set before the start date, then the version is 0 // If the computer date is set before the start date, then the version is 0
if (now >= start) if (now >= start)
{ {
var monthsSinceStart = (now.Year - start.Year) * 12 + now.Month; var yearsSinceStart = (now.Year - start.Year) + 1;
version = monthsSinceStart.ToString("000") + now.Day.ToString("00"); version = yearsSinceStart + now.ToString("MMdd");
} }
return version; return version;