TSE: Date: calendar.s did not accept MM DD YYYY parameter

12 views
Skip to first unread message

knud van eeden

unread,
Feb 8, 2026, 3:36:32 PM (12 days ago) Feb 8
to SemWare TSE Pro Text Editor, S.E. Mitchell
TSE: Date: calendar.s did not accept MM DD YYYY parameter

Hello,

1. Checked in TSE version 4.50.19 and TSE version 4.50 RC24.

2. Upon checking it showed that the current 

 calendar.s

(located at <TSE>\mac\calendar.s)

which comes natively with your TSE installation

does not accept parameters (it is just not implemented).

3. So I asked ChatGPT to create an updated calendar.s which
does accept parameters as

 MM DD YYYY

or also

 MM-DD-YYYY

or also

 MM/DD/YYYY

e.g. today 8 February 2026 would become

 2 8 2026

So passing it e.g. as 

 "calendar_parameter 2 8 2026"

or otherwise via

ExecMacro( "calendar_parameter 2 8 2026" )

4. See URL for the AI conversation

5. See the attached TSE program

    calendar_parameter.s

with friendly greetings
Knud van Eeden

    
calendar_parameter.s

knud van eeden

unread,
Feb 8, 2026, 5:01:07 PM (11 days ago) Feb 8
to SemWare TSE Pro Text Editor, S.E. Mitchell
Hello,

1. In TSE these date format parameters are out of the box defined
(you can find this e.g. if you save the settings to a file via the 'options' in the TSE menu)

DateFormat              = 4         // 1=MM/DD/YY, 2=DD/MM/YY, 3=YY/MM/DD, 4=MM/DD/YYYY, 5=DD/MM/YYYY, 6=YYYY/MM/DD

2. In this latest version the date format is added as an extra parameter (at the end).

3. For example:

ExecMacro("calendar_parameter 2 8 2026")        // default MM DD YYYY
ExecMacro("calendar_parameter 2 8 26 1")        // MM DD YY
ExecMacro("calendar_parameter 8 2 26 2")        // DD MM YY
ExecMacro("calendar_parameter 26 2 8 3")        // YY MM DD
ExecMacro("calendar_parameter 8 2 2026 5")      // DD MM YYYY
ExecMacro("calendar_parameter 2026 2 8 6")      // YYYY MM DD

4. See the attached calendar_parameter version 1.4



--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/249733154.315800.1770582985924%40mail.yahoo.com.
calendar_parameter.s
Reply all
Reply to author
Forward
0 new messages