Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #20207

    Hi Yutaka,

    Related to:

    EmEditor Help – Command Reference – Edit category > Time and Date command
    Edit > Insert > Time and Date
    The formats used for the time and date can be configured in Windows… Regional …Options

    I want to suggest to implement a option to adjust the format for “Insert Date/Time” independently from Windows settings.
    1. I don’t want to modify my Windows settings.
    2. Think portable. On each other PC I have different settings.


    What do you think?

    – – –

    This help entry seams to be no longer valid?
          Default Menu: Edit> Advanced> Time and Date
    In EmEditor I only see
          Edit > Insert > Time and Date

    Isn’t it?

    Yutaka Emura

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

    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.


    Hi Yutaka,
    thank you very much for your reply.
    As you may be aware already, I on my own know how to craft such scripts.
    But that is not very user friendly and too complicated for average user.
    (Also, if one would use a script, that menu item would become useless and only waste space)
    And I can hardly imagine that the implementation of such (absolutely default) feature
    would bloat EE that much and take that much space on executable and settings store?

    But it’s your decision. I can only point you to need improvements from my POV.
    (But inserting the default format like “13:53 24.08.2015” is useless for me, so I will always use a macro for that)

    Thanks for making EmEditor !

    Yutaka Emura

    Hello Stefan,

    You can now set date/time formats on v15.4.0 beta 2:



    Hi Yutaka.

    WOW, thanks, but…

    System default:
    10:06 07.10.2015

    User adjustment, leads to Time Date order:
    10:07:13 2015-10-07

    User wanted order (Date Time) is not possible:
    2015-10-07 10:07:13

    Try with “date” field only (yyyy-MM-dd HH:mm:ss)
    is not working AND leads to a leading space:
      2015-10-07 HH:mm:ss

    How can I use Date first, Time second? > 2015-10-07 10:07:13

    May I suggest to provide ONE single Date-Time field only please,
    where the user can enter the whole string as he needs, like:

    Date/Time Format———————
    [_] Use System Format
    [yyyy-MM-dd, dddd HH:mm:ss ]v]

    Thank you for making EmEditor.

    Yutaka Emura

    Hello Stefan,

    There are two commands: Date and Time, Time and Date. You can find both in the Quick Launch window (CTRL + Q).


    o.O Uhh? Who had guessed that ;-D

    So I am going now to “Tools > Customize Menus…” > Main Menu > [+]-&Edit
    and modify my menu from “Time and Date” to “Date and Time”….. (and there is even a default shortcut: Shift+F5 to insert Date/Time)

    Thanks :thumpsup:

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