Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 615 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 615 Bytes

German Day Finder

Gets the day in German

Usage:

Import in html file

<head>
  <script src="https://raw.githubusercontent.com/mokshsinghji/german-day-finder/main/index.js"></script>
</head>

Get German days:

germanDayFinder.germanDays // [ "Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag" ]

Get today as a string in German

getTodayInGerman() // "Montag"

Get the month as a string with padding

getMonthAsStringWithPadding() // "02"

Get the last 2 digits of the year number as a string

getYearAsString() // "21"