WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Current date

[Resolved] Current date

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    @codepeople

    Hi Selett,

    This is the solution:

    (function(){
    var d = new Date();
    if (fieldname11 – d.valueOf()/86400000 < 730){
    return cdate(fieldname10+1460);
    }else{
    return cdate(fieldname11+730);
    }
    })();

    Thank you for using the plugin!

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Current date’ is closed to new replies.