Ad
  • Custom User Avatar

    Thanks for the tips, I haven't really done any programming in awhile so I'm quite rusty.

  • Default User Avatar

    Tip: When using interpolated strings or string.Format, you don't need to format your numbers by calling ToString; you can just pass the format in after a colon in the interpolated placeholder e.g. Convert.ToInt32($"{year:D4}{month:D2}{day:D2}");. hexNum could also have been formed with maths rather than string parsing (year*10000 + month*100 +day)