How to get current date in JavaScript?

Learn how to get current date in JavaScript with this small tutorial
31 October 2017   75700

Feel free to use new Date() to generate a new Date object containing the current date and time.

var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();

if(dd<10) {
    dd = '0'+dd
} 

if(mm<10) {
    mm = '0'+mm
} 

today = mm + '/' + dd + '/' + yyyy;
document.write(today);

This will give you today's date in the format of mm/dd/yyyy.

Simply change today = mm +'/'+ dd +'/'+ yyyy; to whatever format you wish.

 

ACME Protocol to be Internet Standard Now

ACME protocol is used to organize the interaction between the certification center and the web server to automate the receipt and maintenance of certificates
12 March 2019   413

The Internet Engineering Task Force (IETF), which develops Internet protocols and architecture, completed the RFC for the ACME (Automatic Certificate Management Environment) protocol and published its associated specification under RFC 8555 id. The RFC received the status of the “Proposed Standard”, after which the work of giving the RFC the status of a draft standard (Draft Standard), which actually means the full stabilization of the protocol and taking into account all the comments made.

ACME protocol is used to organize the interaction between the certification center and the web server, for example, to automate the receipt and maintenance of certificates. Requests are transmitted in JSON format over HTTPS. The second version of the ACMEv2 protocol is standardized, providing support for masks in certificates, providing an improved authorization mechanism, supporting resource renaming operations and offering a new method for checking domain ownership TLS-SNI-02.