1.0.11 • Published 1 year ago

check-appointment-status v1.0.11

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

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago