EmEditor (text editor) Forum Index
   General
     need help to insert time only in EmEditor
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
netsking
Posted on: 3/14/2012 1:25 pm
Not too shy to talk
Joined: 8/23/2008
From:
Posts: 34
need help to insert time only in EmEditor
Hi, there,

Is it possible to insert current time only instead of "time and date" or "date and time"?

Thanks a lot in advance.
Yutaka
Posted on: 3/14/2012 6:42 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: need help to insert time only in EmEditor
Hello,

You can use a macro like this:


var today = new Date()
document.selection.Text = today.toLocaleTimeString();


Thanks!


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

netsking
Posted on: 3/15/2012 2:38 pm
Not too shy to talk
Joined: 8/23/2008
From:
Posts: 34
Re: need help to insert time only in EmEditor
Yutaka,

Thanks a lot for your quick answer.
I got it. Now I can insert only time with shortcut keyboard as "Shift+Ctrl+p".
Threaded | Newest First Previous Topic | Next Topic | Top


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