1.0.11 • Published 3 years ago

check-appointment-status v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 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

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago