Skip to content

Instantly share code, notes, and snippets.

View AspireOne's full-sized avatar

Matěj Pešl AspireOne

View GitHub Profile
@AspireOne
AspireOne / CzechMonths.cs
Last active November 14, 2020 15:15
This method will return a correctly inclined czech month based on the passed month number and case (C# 8 and C#9 ver.)
static readonly string[] DeclensedCzechMonthNamesBase = { "ledn", "únor", "březn", "dubn", "květn", "červn", "červenc",
"srpn", "září", "říjn", "listopad", "prosinc"};
static readonly string[] FullCzechMonthNames = { "leden", "únor", "březen", "duben", "květen", "červen", "červenec",
"srpen", "září", "říjen", "listopad", "prosinec" };
// C#8
public static string GetCzechMonthName(byte month, byte @case = 1)