Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8930
    pja
    Participant

    Hi!

    I would like to be able to insert a “long” date such as:

    Wednesday, 8 September 2010

    rather than the current EmEditor “Edit>Date and Time” format which gives:

    08/09/2010 7:15 PM

    Which is the Windows “short date” format.

    I guessI would like the option to insert the Windows “Long Date”.

    Does anyone know if this is possible?

    Regards,
    Peter

    #8932
    Yutaka Emura
    Keymaster

    Hello pja,

    You can write a macro to insert any date format you would like:

    d=new Date(); document.write(d.toLocaleString());

    This is a javascript macro.

    #8935
    pja
    Participant

    Yutaka,

    Thank you for your quick reply.

    I was not aware how easy it is to include JavaScripts into toolbar buttons – this is really neat!

    Your reply got me Googling and I have now come up with a (IMHO) really neat script with a nicely formatted date.

    Thanks again,
    Peter :-D

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.