Version 1.1.17

Date 2019-10-20 (1,853 days ago)
Downloads 732 downloads
NuGet View on NuGet
GitHub View on GitHub
Target Frameworks .NET Standard 1.1 .NET Standard 1.3 .NET 4.5 .NET 4.6 .NET 4.7

#installation">Installation

#changelog">Changelog

  • Added YearAndDate properties to the EssentialsTime and EssentialsDate classes (see 5cb10ee)
    The new properties expose the date as a numeric value based on both the year and the day of the year, which makes the value ideal for comparing and sorting.

  • Fixed issue with the IsToday property in EssentialsTime (see 04b23e724952572cbee36068dbb07562d27ca5c and #10)
    The property compared against a wrong value, causing it to never be true - even when should be..

  • Added new DaySuffix properties to the EssentialsTime and EssentialsDate classes (see 097d56d)
    The properties return the English day suffix (eg. 1st, 2nd and so forth) based on the underlying date.

  • Added new AddDays method to the EssentialsDate class (see ffe7cd4)
    The new method allows you to add a number of days to a date - eg. date.AddDays(1) to get the next day, or date.AddDays(-1) to get the previous date.

  • Introduced new EssentialsDateRange class (see d6f05a7)
    By giving the constructor a start and end date, the class let's you iterate over each EssentialsDate within the range. The class let's you iterate both in regular and reverse order depending on the input to the constructor.

  • Introduced new ToStringJsonConverter JSON converter (see 80288e1 and #9)
    The JSON converter will automatically call the ToString method on the object it's supposed to serialize. The JSON converter does not support deserialization.

  • Added new constructor overloads to the EssentialsWeek class (see 60dc84e)
    The EssentialsWeek now has two ned constructor overloads, where the first takes an instance of EssentialsDate and the second takes both an EssentialsDate and a TimeZoneInfo.

  • Various improvements to the EssentialsWeek class (see 7833df1)
    Improvements include a constructor overload taking a year, month and day.

  • Introduced the EssentialsWeekRange class (see 1754af4)
    By giving the constructor a start and end week, the class let's you iterate over each EssentialsWeek within the range. The class let's you iterate both in regular and reverse order depending on the input to the constructor.