ANSWERED: setting date/time format

Ask how to do things or if a certain feature is available in the program.
Post Reply
User avatar
DerellLicht1
Posts: 203
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

ANSWERED: setting date/time format

Post by DerellLicht1 »

I recently discovered that I can use F5 to insert date/time into a document...
That is something that I actually sometimes want to do... however, the long-form format that is being used, is not useful to me; I wish to specify my own format (in this case MM/DD/YY, HHMM)... is there some way to set that format??
I tried looking through the Options menus, but I could easily have missed it!!!
Last edited by DerellLicht1 on 08 Nov 2025 18:49, edited 1 time in total.
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: setting date/time format

Post by pjj »

Have a look at Text clips, chars > insert current date, it's there. You need to define [[date]] as e.g. @d[dd/mm/yyyy] and [[time]] (in a row below) as @t[hh:mm] and then write [[date]] [[time]] as a desired result (however slash as a separator in dates has been changed to a hyphen).
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
DerellLicht1
Posts: 203
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: setting date/time format

Post by DerellLicht1 »

Thank ye once again, @pjj !!!
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: setting date/time format

Post by pjj »

Image
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
DerellLicht1
Posts: 203
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: setting date/time format

Post by DerellLicht1 »

pjj wrote: 31 Oct 2025 21:49 Have a look at Text clips, chars > insert current date, it's there. You need to define [[date]] as e.g. @d[dd/mm/yyyy] and [[time]] (in a row below) as @t[hh:mm] and then write [[date]] [[time]] as a desired result (however slash as a separator in dates has been changed to a hyphen).
sadly, this isn't working for me... I'm still missing something (other than a brain)...
I opened Text clips (from View -> Panels), but there is *nothing* on that panel that related to 'chars' at all, I don't see 'insert current date' anywhere...
so I still don't know how to do this...

Later:
Well, I don't know how I'm supposed to handle this thematically, but I searched through TextEd.ini and found the following line:
LongDateTime=1

Changed it to 0, and I now get the date/time display that I wanted...
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: setting date/time format

Post by pjj »

DerellLicht1 wrote: 03 Nov 2025 22:34 sadly, this isn't working for me... I'm still missing something (other than a brain)...
If someone here is missing a brain, it's me, hands down :lol:

That "chars" folder I mentioned was... made by myself, no wonder you couldn't find it :oops: Just add a new clip (green plus sign) and then those two entries I suggested above. Or, if
DerellLicht1 wrote: 03 Nov 2025 22:34 (...) Changed it to 0, and I now get the date/time display that I wanted...
this suits you, don't bother with a text clip.

Image
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
DerellLicht1
Posts: 203
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: setting date/time format

Post by DerellLicht1 »

pjj wrote: 04 Nov 2025 08:44 If someone here is missing a brain, it's me, hands down :lol:

That "chars" folder I mentioned was... made by myself, no wonder you couldn't find it :oops:
:lol: :mrgreen:

Well, given all the helpful advice that you've given me over the years, I'm not going to object to an occasional oops...
I'll just snicker a bit!!

Have a nice day...
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: setting date/time format

Post by pjj »

Yeah, oopsie it was with regard to folder... but still you can use a text clip (I should have attached that screenshot earlier):
edit item.png
edit item.png (29.44 KiB) Viewed 22102 times
I hope it can be useful to you somehow.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
User avatar
DerellLicht1
Posts: 203
Joined: 23 Jul 2021 17:38
Location: Fremont, CA, USA

Re: setting date/time format

Post by DerellLicht1 »

pjj wrote: 05 Nov 2025 16:49 Yeah, oopsie it was with regard to folder... but still you can use a text clip (I should have attached that screenshot earlier):
I hope it can be useful to you somehow.
Oh!! Yes, it is...
The LongDateTime hack that I used, was not ideal, because it still includes the seconds, which I don't find useful when time-stamping code changes...
So *yes*, the image that you included most recently, is excellent... Thank ye!!
Post Reply