Compare current date time to a specific date

I want to compare in javascript the local date time (of a device connected to Internet and with sntp enabled) to a specific date the user enters and perform an action when this date is reached.

I read the docs and Date is not supported. Is there another way to do this? Or make an external api service for this?

You will have to do it in C.