1.0.11 • Published 2 years ago

check-appointment-status v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Check Appointment Status

Pass Date Object to the function

Function returns Colour name.

Red - Past Appointments

Green - Today Appointmets

White - Future Appointments

Example of Date Object:

Date Object Format: 'YYYY-MM-DD'

Date Object Format: 'YYYY-MM-DD HH:MM:SS'

Example:

const checkStatus = require('check-appointment-status');

let appointment = new Date('2023-03-27');
let colour = checkStatus(appointment);

// or

let appointment = new Date('2023-03-27 00:00:00');
let colour = checkStatus(appointment);

Response

Green
1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago