Search code examples
emeditor

TODAY FUNCTION IN EMEDITOR


Please how do i get "today's date function" into a Column on Emeditor? Similar to Excel


Solution

  • You can use a JavaScript macro like this:

    var today = new Date();
    var dd = today.getDate();
    var mm = today.getMonth() + 1;
    var yyyy = today.getFullYear();
    document.write( mm + '/' + dd + '/' + yyyy );