Replacing Julian date in TDBGrid cells
Posted on 1998-12-27
Using Delphi 3, and a TDBGrid, one of the columns/fields displays a date in Julian format (e.g. "145667").
Since my brain cannot convert the Julian value in the DBGrid easily, I am wanting to have some way to display the Julian date as a more user friendly date.
I do NOT want to change the actual value in the linked database table. Instead, I just want the cells in the "Date" column/field to DISPLAY something besides what is in the actual database table.
What is the best way to approach this? I could have all the Julian dates displayed as "MM-DD-YYYY" in the cells in the "Date" column, or I could have a popup hint window appear with the converted date when the cursor hovers over a particular date cell.
Any other ideas?
In either case, I don't know how to do either of the above, so any code would likewise be appreciated.