Awesome.
And since I am actually using this in conjunction with a javascript function, would the below work?
<script>
var nowTime = <?php time(); ?>;
var startTime = <?php strtotime(get_field('start_date_time', false, false)); ?>;
var endTime = <?php strtotime(get_field('end_date_time', false, false)); ?>;
if (startTime <= nowTime && nowTime <= endTime) {
//do something
}
</script>
Also, I am assuming the PHP time(); function and the Date Time Picker both use the server’s time zone, correct?