Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "find-a-day", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "find a day which is given date-of-birth", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
@@ -13,2 +13,6 @@ # find-a-day | ||
``` | ||
## Format | ||
```bash | ||
Format: 'DD-MM-YYYY' or 'DD/MM/YYYY' | ||
``` | ||
@@ -19,5 +23,5 @@ ## Usage | ||
// Example usage: | ||
const dateOfBirth = '15-08-1947'; // Format: DD-MM-YYYY | ||
const dateOfBirth = '15-08-1947'; // Format: 'DD-MM-YYYY' or 'DD/MM/YYYY' | ||
const dayOfWeek = getDayOfBirth(dateOfBirth); | ||
console.log('Birth day is:', dayOfWeek); // Birth day is: Friday | ||
``` |
3060
25