Reverse Countdown Till 01 Jan 2022 With Regex

Oct 25, 2017

Configuration:-


<div id="countdowntimer"><span id="specfuture_date"></span></div>

<script type="text/javascript">
	$(function() {
		$("#specfuture_date").countdowntimer({
			dateAndTime : "2022/01/01 00:00:00",
			size : "sm",
			displayFormat : "YODHMS",
			regexpMatchFormat : "([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})",
			regexpReplaceWith : "$1<sup class='displayformat'>years</sup> / $2<sup class='displayformat'>months</sup> / $3<sup class='displayformat'>days</sup> / $4<sup class='displayformat'>hours</sup> / $5<sup class='displayformat'>minutes</sup> / $6<sup class='displayformat'>seconds</sup>"
		});
	});
</script>

<style type="text/css">
	.displayformat {
		font-size : 18px;
		font-style : italic;
	}
</style>