- June 25, 2015 at 2:37 am #20207
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?August 20, 2015 at 11:03 am #20321
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.August 24, 2015 at 4:57 am #20326
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 !October 6, 2015 at 2:55 pm #20368
You can now set date/time formats on v15.4.0 beta 2:
Thanks!October 7, 2015 at 4:25 am #20370
WOW, thanks, but…
User adjustment, leads to Time Date order:
User wanted order (Date Time) is not possible:
Try with “date” field only (yyyy-MM-dd HH:mm:ss)
is not working AND leads to a leading space:
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:
[_] Use System Format
[yyyy-MM-dd, dddd HH:mm:ss ]v]
Thank you for making EmEditor.October 7, 2015 at 8:32 am #20371
There are two commands: Date and Time, Time and Date. You can find both in the Quick Launch window (CTRL + Q).
Thanks!October 7, 2015 at 9:52 am #20372
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)
You must be logged in to reply to this topic.