EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Insert Long Date
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
pja
Posted on: 9/8/2010 5:40 pm
Just popping in
Joined: 2/15/2008
From: Batemans Bay, NSW, Australia
Posts: 20
Re: Insert Long Date
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


----------------
There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things -- Niccolo Machiavelli, The Prince, ch. 6

Yutaka
Posted on: 9/8/2010 9:24 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2424
Re: Insert Long Date
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.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

pja
Posted on: 9/8/2010 1:18 am
Just popping in
Joined: 2/15/2008
From: Batemans Bay, NSW, Australia
Posts: 20
Insert Long Date
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


----------------
There is nothing more difficult to take in hand, more perilous to conduct, or more uncertain in its success, than to take the lead in the introduction of a new order of things -- Niccolo Machiavelli, The Prince, ch. 6

Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文