Create a countdown timer based on a dataset Date/Time value.

For my website, I am using a dataset Date/Time value to capture the endpoint of an event. I would like to create a text-based countdown timer but I am unsure of how to reference the dataset value as the “new Date()” value. Can anyone provide a reference or example on how to point the script to this particular data point? Thanks!