find-a-day
v1.0.3
Published
find a day which is given date-of-birth
Downloads
2
Maintainers
Readme
find-a-day
Installation
npm install find-a-day
Import
const getDayOfBirth = require('find-a-day'); // .cjs file extension
Format
Format: 'DD-MM-YYYY' or 'DD/MM/YYYY'
Usage
// Example usage:
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