Expiry date calculation | WordPress.org

Below code is working fine. The result getting as 8, April 2023, but i need 08/04/2023 format.

(function(){
var d = fieldname11+fieldname12;

return DAY(d)+’, ‘+MONTHNAME(d)+’ ‘+YEAR(d);
})()

Now its OK.

(function(){
var d = fieldname11+fieldname12;

return DAY(d)+’/ ‘+MONTH(d)+’/ ‘+YEAR(d);
})()

Hello @shameerkr

Excellent !!!

Another alternative would be:

GETDATETIMESTRING(fieldname11+fieldname12, 'dd/mm/yyyy')

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