# DateTime data type: @DT picture support expanded

**URL:** <https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124>\
**Category:** General\
**Created:** [October 1, 2026, 8:50pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124 "2026-10-01T20:50:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 1, 2026, 8:50pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/1 "2026-10-01T20:50:11Z")

</div>

The new expanded form is:

@DT[n][S][D date picture][T time picture][B]

- n is the number of fraction digits as today.

- S is one character placed between the two parts: an underscore gives a space, a caret (^) gives no separator at all, and any other character stands for itself - T gives ISO 8601.

- Any numbered Date (@D1 through @D18) or Time (@T1 through @T8) picture with its own fill character, separator and epoch, written after the separator _without_ its @ sign (D06 for @D06, D010- for @D010-): the date part displays, and is entered, exactly as that picture would show it. If omitted, @D010- (yyyy-mm-dd) is used.

- Every omitted part keeps the base shape, so @DT, @DT3 and @DT7 render as before.

Some examples:

```clarion
    @DT3TD010-T04 2026-09-09T13:05:07.123
    @DT^D12T05 20260909130507
    @DT_D06T3 09/09/2026 1:05PM
    @DT_D8T4 9 SEP 2026 13:05:07
    @DT.D1T1 9/09/26.13:05

```

FORMAT, DEFORMAT, STRING and ENTRY controls all process the composed form, and a date-time shown with a chosen picture is typed back through that same picture. The fraction digits follow the seconds, so n above 0 needs a time part that shows seconds (@T4, @T5 or @T6). A zero date-time still shows blank: the DATETIME null is 0, the same contract a zero DATE has.

In the next refreshed build. The Help topic “Date-Time Pictures” carries the full table.

 ![DTpictureExpandedSupport2](https://canada1.discourse-cdn.com/flex011/uploads/softvelocity/original/1X/9258ed2fa3a3e5af79fa80a916f52f20ed63b3f0.jpeg)

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@CarlBarnes](https://forums.softvelocity.com/u/CarlBarnes)\
**Post date:** [October 2, 2026, 3:04pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/2 "2026-10-02T15:04:18Z")

</div>

> [@rzaunere](#):
>
> `@DT_@D8@T4 9 SEP 2026 13:05:07`

Think that will break LIST Format parsing format with `@` on both ends ?

Seems like the extra `@` i.e. `@D` `@T` is not needed, will work as just D or T? … Well if you change the [\S]

* * *

`@DT\[n\]\[S\]\[@D date picture\]\[@T time picture\]\[B\]`

> [@rzaunere](#):
>
> - S is one character placed between the two parts: an underscore gives a space, a caret (^) gives no separator at all, and any other character stands for itself - T gives ISO 8601.

Consider placing that on the end like Currency in ~Tildes~:

```auto
@DT3@D010-@T04~T~ 2026-09-09T13:05:07.123
@DT@D12@T05~~ 20260909130507
@DT@D06@T3~ ~ 09/09/2026 1:05PM
@DT@D8@T4~ ~ 9 SEP 2026 13:05:07
@DT@D1@T1~.~ 9/09/26.13:05

Without extra @ for FORMAT(), and DT as C
@c3D010-T04~T~ 2026-09-09T13:05:07.123
@cD12T05~~ 20260909130507
@cD06T3~ ~ 09/09/2026 1:05PM
@cD8T4~ ~ 9 SEP 2026 13:05:07
@cD1T1~.~ 9/09/26.13:05

```

* * *

See the `@picture@` in FORMAT. All current parsing code assumes it ends at the second `@` … which does not need not be last e.g. `@s30@?`

```clarion
 , |
 FORMAT('126L(2)|*~Employee Name~@s30@?' &|
        '[' &|
          '19C~Type~L(0)@n2@' &|
          '132L(2)|~Description~@s30@' &|
                                     '](134)|' &|
        '[' &|
          '19R(2)~Bldg.~C(0)@n2@' &|
          '100L(2)|~Description~@s25@' &|
                                     ']|' &|
        '20C|~ Pay<0DH,0AH>Grp~@n_2@' &|
        '13C|*~St.~@s1@' &|
        '[' &|
          '30R(2)|~Board~C(0)@n6.2~%~b@' &|
          '24L(2)|~Empl.~C(0)@n6.5b@' &|
                                    '](55)|_~TRS Data~' &|
        '40R(3)|~SSN~C(0)@P###-##-####P@' &|
        '20R(3)|~Emp<0DH,0AH>No~C(0)@N_5@' &|
        '24R(2)|~Clock~C(0)@n_6@' &|
        '33R(2)|M~EIN~C(0)@n_9b@' &|
        '15R(5)|M~EIS<0DH,0AH>Exempt~C(0)@n3~Exm~B@' ), |

```

```clarion
ColumnzCls.ColumnzQ_From_Format PROCEDURE(STRING FmtSpec, STRING FmtTokn) !Fill in ColumnzQ from Format
    CODE
    IF ~CharNUMERIC(FmtSpec[1],1) THEN !Must be [group]
        IF FmtSpec[1]=']' THEN DO EndGroupRtn.
        RETURN
    END
    !Input FmtSpec: 126L(2)|*~Employee Name~@s30@?
    !Input FmtTokn: 122L( )|*~ ~@ @? Just the tokens that matter
    EndParenCW =SELF.FmtParse_WidthAlign(FmtSpec, FmtTokn, ColzQ:Width, ColzQ:Align)
    DO HeaderRtn !FInd ~Header~
    ColzQ:Picture=SELF.FmtParse_Between(FmtSpec, FmtTokn,'@','@') !<--- @Picture@ 
    SELF.FmtParse_GetModifiers(FmtSpec,ColzQ:Mods,ColzQ:ModXFields)
    RETURN
ColumnzCls.FmtParse_Between PROCEDURE(CONST *STRING FmtSpec, CONST *STRING FmtTokn,STRING LeftToken, STRING RightToken, <*LONG OutLeftPos>, <*LONG OutRightPos>)!,STRING,PROC
L LONG,AUTO
R LONG,AUTO
    CODE
    L=INSTRING(LeftToken,FmtTokn,1,1)
    IF L THEN R=INSTRING(RightToken,FmtTokn,1,L+1) ELSE R=0 . 
    IF L+1 > R-1 THEN L=0 ; R=0. !Was @@ 2 tokens then no return
    IF ~OMITTED(OutLeftPos) THEN OutLeftPos = L.
    IF ~OMITTED(OutRightPos) THEN OutRightPos= R.
    IF L AND R AND R-1 >= L+1 THEN
       RETURN FmtSpec[L+1 : R-1]
    END
    RETURN ''

```

---

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 2, 2026, 3:30pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/3 "2026-10-02T15:30:40Z")

</div>

Some good points, we’ll add some more tests with LIST controls, and think about moving the separator position.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@CarlBarnes](https://forums.softvelocity.com/u/CarlBarnes)\
**Post date:** [October 2, 2026, 3:48pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/4 "2026-10-02T15:48:37Z")

</div>

You may find this tool helpful that splits the FORMAT onto 1 line per column and more. It will also preview any format

> **[GitHub - CarlTBarnes/List-Format-Parser: View LIST FORMAT() split into One Line per Column....](https://github.com/CarlTBarnes/List-Format-Parser)**
>
> View LIST FORMAT() split into One Line per Column. Use for Edit Format, Copy Columns and Groups. Source compare: Format() column changes, Preview LIST in Window.

---

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 2, 2026, 5:07pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/5 "2026-10-02T17:07:04Z")

</div>

FORMAT parser(s) - most cases find the end of a column picture at the next @, so a picture with an @ inside it is an issue. The Date and Time ‘parts’ of a @DT are now written without their @:

```
@DT\[n\]\[S\]\[D date picture\]\[T time picture\]\[B\]
@DT3TD010-T04 2026-09-09T13:05:07.123
@DT^D12T05 20260909130507
@DT_D06T3 09/09/2026 1:05PM
@DT_D8T4 9 SEP 2026 13:05:07
@DT.D1T1 9/09/26.13:05

```

The date part runs from its D to the T that starts the time part. A T followed by a digit or a fill character is the time part; any other T is the separator, so @DTT is the ISO form with the default parts and @DTTT04 the ISO form with an explicit time part.

The Separator stays where it is for now, one character right after the decimals. Your ~S~ form reads well and would allow more than one character; what holds it back today is that ~ ~ carries a blank, and a picture token in source ends at a blank. We’ll look at it more once the current implementation has had some use.

It’s in the next refreshed build; and the Help topic “Date-Time Pictures” is updated.

---

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 2, 2026, 5:20pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/6 "2026-10-02T17:20:39Z")

</div>

Thanks that sounds very useful!

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@CarlBarnes](https://forums.softvelocity.com/u/CarlBarnes)\
**Post date:** [October 2, 2026, 5:29pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/7 "2026-10-02T17:29:00Z")

</div>

> [@rzaunere](#):
>
> Your ~S~ form reads well and would allow more than one character; what holds it back today is that ~ ~ carries a blank, and a picture token in source ends at a blank.

Pattern pictures in help show spaces e.g. `@P<#lb. <#oz.P`.  
Numeric pictures in help show spaces e.g. `@N12_2~ F~ = 1 5430,50 F`  
Are you sure about spaces. Logical to me that once a parser finds the 1st Tilde it must find the 2nd one.

> [@rzaunere](#):
>
> - S is one character placed between the two parts: an underscore gives a space, a caret (^) gives no separator at all, and any other character stands for itself - T gives ISO 8601.

There’s no need for the `~ ~` (~space~) as a Space Separator is the default … and your Help page says in the “S” section if omitted you get a space.

No Separator could be `~~` (YYYMMDDHHMMSS) with no need for the special caret (^).

So the ~Tilde~ separator could probably require no special characters …

I can see having spaces in the ~separator~. If that cannot work like `@P P` Underscores in there could be spaces. But I like using an Underscore for a File Name Time Stamp `YYMMDD_HHMMSS`. So I’d ask that Grave Accent be used for Spaces.

![image](https://canada1.discourse-cdn.com/flex011/uploads/softvelocity/optimized/1X/a562bffccb2ea8add26ea1a264638447b396df56_2_690x43.png)

* * *

One thing I really like about the ~Tilde~ syntax is I know it will be easy to write solid code to parse it. Find Tilde #1 then #2 then take between. The leading “S” way I have a few oddities to look for or past.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@CarlBarnes](https://forums.softvelocity.com/u/CarlBarnes)\
**Post date:** [October 2, 2026, 6:36pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/8 "2026-10-02T18:36:44Z")

</div>

You are going to make substantial changes to the Date Time Picture code `@DT` _everywhere_ so it seems the time to change `DT` to a single character `@` Picture code like `@c @m @w etc`

The current Single Letter Picture `@ d,t,n,e,s,p,k` syntax is simple, easy and consistent. `@DT` will throw a wrench in the gears of working code.

In the Friday webinar AI searched John’s POS code and he found Accessory GCAL templates seeing `@D` and adding a Calendar. That is no longer supported. There is a lot of code and it is hard to find since picture is in PROP:Text.

Any letter will do but the more I think in terms of `@C` for “_Calendar Picture_” the more I like it. For your new pictures I like that the ‘C’ does not duplicate the ‘D’ of Date part e.g. `@c3D010-T04~T~ 2026-09-09T13:05:07.123`.

Z please please please please don’t use the 2 letter `@DT` picture.

---

<div class="post-metadata">

**Author:** ![bruce](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bruce](https://forums.softvelocity.com/u/bruce)\
**Post date:** [October 3, 2026, 3:25am UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/9 "2026-10-03T03:25:07Z")

</div>

I agree, as mentioned before, using a 2 letter picture code will break a lot of existing programs. Well, only, I guess if the @DT is actually used by the developer anywhere. I expect keeping it as @DT will simply create the myth that “don’t use it, it breaks your code”.

---

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 3, 2026, 8:37pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/10 "2026-10-03T20:37:18Z")

</div>

We are considering changing it - as I mentioned before. But state the issue _clearly_, the ONLY code that potentially _breaks_ is in 3rd party tools, and those tools have to modify the exact same area in their code to support any DateTime Picture. So you’re spreading **breaks a lot of code** scary stuff without mentioning that it’s your code you’re worried about. And it doesn’t break the code, it would just require modifying your code, which, again, you have to do no matter what if you intend to support the DateTime data type.

---

<div class="post-metadata">

**Author:** ![CarlBarnes](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@CarlBarnes](https://forums.softvelocity.com/u/CarlBarnes)\
**Post date:** [October 4, 2026, 8:18pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/12 "2026-10-04T20:18:34Z")

</div>

> [@rzaunere](#):
>
> And it doesn’t break the code, it would just require modifying your code, which, again, you have to do no matter what if you intend to support the DateTime data type.

It does BREAK the code that does not expect DECIMAL(19,7) seconds. Using `@C` the current code

`@DT` will be found by Code and Templates looking for `@D` Date Pictures:

- That code will expect a LONG Days value of about 80,000
- The Contents(?) will be Seconds values of 7,000,000,000
- Currently it overflows to be Negative LONG values
- It will not work and cause oddities, it Breaks that code

* * *

`@c` will not be seen as `@d`, or any other existing picture.

- `@c` should fall to an ELSE case and not be processed
- So nothing special happens for this until support is added
- 3rd Party will have to create new Code and Templates to handle that DATETIME Seconds `DECIMAL(19,7)` value that is both Date and Time.

* * *

> [@rzaunere](#):
>
> the ONLY code that potentially _breaks_ is in 3rd party tools, and those tools have to modify the exact same area in their code to support any DateTime Picture.

Calendar Templates are ones I see likely to be a problem. I know there are those that scan the window for `ENTRY(@d)` and add a Calendar button and/or special features like a Hot Key to show a Calendar picker and Hot Keys to change the Date. GCAL from Moreno is one. It is no longer supported.

* * *

I thought there would be little use of the ~@DT~ picture as I cannot see users wanting that both format `YYYY-MM-DD HH:MM:SS` for entry.

Your “Picture Support Expanded” in this topic changes all that in a great way! Now it is easy to have 1 DateTime Field with the Date and Time Entry separate and as desired for the locale:

```Clarion
!USA
 ENTRY(@cD02b),USE(MyDateTime),TIP('Just enter the Date as MM/DD/YYYY')
 ENTRY(@cT03b),USE(MyDateTime),TIP('Just enter the Time as HH:MMxM')
!Europe
 ENTRY(@cD06b),USE(MyDateTime),TIP('Just enter the Date as DD/MM/YYYY')
 ENTRY(@cT02b),USE(MyDateTime),TIP('Just enter the Time as HH:MM 24 hour times')

```

All current pictures are 1 character unique. Please don’t go for `@DT` because it looks nice. A new suggestion from Jeff is `@J` meaning “Jiffy” 🤔 which sounds like just time.

---

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [October 4, 2026, 9:41pm UTC](https://forums.softvelocity.com/t/datetime-data-type-dt-picture-support-expanded/124/13 "2026-10-04T21:41:16Z")

</div>

The Datetime picture is now @C and the separator goes last, between tildes, the same as a currency does in @N. The form is now

```
@C\[n\]\[D date picture\]\[T time picture\]\[\~separator\~\]\[B\]

@C3D010-T04\~T\~ 2026-09-09T13:05:07.123
@CD12T05\~\~ 20260909130507
@CD12T05\~\_\~ 20260909_130507
@CD06T3 09/09/2026 1:05PM
@CD06T3\~ at \~ 09/09/2026 at 1:05PM
@CD8T4\~, \~ 9 SEP 2026, 13:05:07
@C\~T\~ 2026-09-09T13:05:07

```

The separator text between the tildes can be up to eight characters long (including space characters); two tildes with nothing between them means no separator; leaving the tildes out of the picture gives a space.

In the next refreshed build; the Help topic “Date-Time Pictures” is updated.

 ![DTpictureisAtC](https://canada1.discourse-cdn.com/flex011/uploads/softvelocity/original/1X/3a6e1e243296cec46431e4941ef52dae78eafede.jpeg)
