Is there a trick to formatting a Date when Grouping in Grid?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2450
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Is there a trick to formatting a Date when Grouping in Grid?

Post by Jaymer »

I'm grouping on a simple DATE field in SQL Server.
Haven't used Grouping much, and can't remember if I'm missing something.
Why is the date showing up like this?
Almost latest build, I'm on 2629 out of 2631

The default on the attribute is MM-dd-yy and I overrode it in the grid, to no avail.
Attachments
Capture.PNG
Capture.PNG (15.79 KiB) Viewed 2856 times
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
customaware
Posts: 2399
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Re: Is there a trick to formatting a Date when Grouping in G

Post by customaware »

I just had precisely the same issue.

Ended up creating an additional TEXT Attribute As_STRING(MyDate,'yyyy')
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Jaymer
Posts: 2450
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Is there a trick to formatting a Date when Grouping in G

Post by Jaymer »

i would think thats got to be a bug.

nowhere in Aware have I ever seen dates formatted as this:
Mon Sep 30 2019 00:00:00 GMT+0000 (Greenwich Mean Time)

I'll report it
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply