A .NET library for zodiac signs. Get details on each zodiac sign, pass a date and know which zodiac sign it falls in or get a list of all zodiac signs. Now includes Chinese zodiac signs and elements!
Library can either be directly downloaded from Nuget.org, OR installed via the NuGet Package Manager UI or via the Package Manager Console if you're using Visual Studio.
Command to install Horoscope NuGet via the Package Manager Console UI in Visual Studio shown below.
PM> Install-Package Horoscope
Include the namespace in your program.
using Horoscope;
Then go ahead and consume it.
var zodiacSign = Zodiac.GetZodiacSignForDate(new DateTime(1950, 2, 12));
Another simpler option if all you need is the zodiac sign for a single date is:
var givenDateTime = new DateTime(1995, 8, 26);
var zodiacSign = givenDateTime.GetZodiacSign();
Horoscope.Zodiac
Horoscope.ChineseZodiac
Find release notes here.
(c) 2018 Clyde D'Souza
Icon credits: Firkin