Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Format in Grid Textbox

Status
Not open for further replies.

Scott24x7

Programmer
Jul 12, 2001
2,826
JP
Hi All,
I'm having a problem with the display of dates in textboxes in a grid. I'm baffled.
I have dates in text boxes in the form that display the dates as I expect (We use Japan format, with full century, so today's date would display as 2018/10/11 (October 11, 2018). But the same field in the grid on the form displays as 10/11/18 - US date format. I have set the DateFormat property in the textbox in the grid to 7 - Japan. Century is also set on.
At the system wide level I have the date format set to Japan as well. But the text box in the grid doesn't seem to recognize it at all.
Any ideas?

Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Hey Atlopes, that worked! BUT... now it's not setting the dynamic back color after the change.
(That's an annoying property... I had no idea it affected the display of dates).

Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Ah, found it... now have to set the textbox backstyle to Transparent instead of the default Opaque.
Sometimes the grid behaviour is really non-intuitive.


Best Regards,
Scott
MIET, MASHRAE, CDCP, CDCS, CDCE, CTDC, CTIA, ATS

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top