Live countdown timer | WordPress.org

[ad_1]

Hello @pexel

Yes, you can use the DATEDIFF and NOW operations. Assuming the date/time field in the form is the fieldname1 field, you can insert a calculated field ( I’ll call it fieldname2 ) and enter an equation similar to:


(function()
if ( typeof my_timout_identifier != 'undefined' ) clearTimeout( my_timout_identifier );

my_timout_identifier = setTimeout( function()n); , 1000 );

let o = DATEDIFF(NOW(), fieldname1, 'yyyy/mm/dd hh:ii', 'd');

return CONCATENTATE(o['days'], ' days ', o['hours'], ' hours and ', o['minutes'], ' minutes');
)()

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer