Ultimate Text Editing Software: EmEditor, Your Perfect Digital Wordsmith Companion

Ultimate Text Editing Software: EmEditor, Your Perfect Digital Wordsmith Companion

Robert Lv8

Ultimate Text Editing Software: EmEditor, Your Perfect Digital Wordsmith Companion

August 20, 2015 at 11:03 am #20321

Yutaka Emura

Keymaster

You can use a JavaScript macro to insert date/time by any format. For example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var date = new Date();
var hour = date.getHours();
var hh = hour;
if(hour < 10) hh = "0" + hour;
var min = date.getMinutes();
var mm = min;
if(min < 10) mm = "0" + min;
var sec = date.getSeconds();
var ss = sec;
if(sec < 10) ss = "0" + sec;

var monthNames = [
"January", "February", "March",
"April", "May", "June", "July",
"August", "September", "October",
"November", "December"
];

var day = date.getDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();

document.write(hh + ":" + mm + ":" + ss + ", " + day + " " + monthNames[monthIndex] + ", " + year);

I am trying to prioritize features that can’t be done by using macros higher than others, which allows EmEditor keep lightweight.

Also read:

  • Title: Ultimate Text Editing Software: EmEditor, Your Perfect Digital Wordsmith Companion
  • Author: Robert
  • Created at : 2024-10-11 16:07:19
  • Updated at : 2024-10-14 16:19:56
  • Link: https://win-superb.techidaily.com/ultimate-text-editing-software-emeditor-your-perfect-digital-wordsmith-companion/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Ultimate Text Editing Software: EmEditor, Your Perfect Digital Wordsmith Companion