As the occasional programmer, I needed a quick little app to create lists of dates for work that I do. The app must display certain dates in a multi-select listbox in the yyyy-mm-dd format. (I posted some of my multi-select routines in: http://www.powerbasic.com/support/pb...ad.php?t=40948)
I wrote it in FireFly, and it works fine on my XP. However, when I ran it on another XP, I found my dates truncated and containing extraneous characters. I tried to change the short and long formats on the second machine, but that didn't seem to help.
I think this has to do with conflicts between my development machine, where I have the date format set to yyyy-mm-dd (eg: 2009-07-01), the way that the DatePick32 control sees the LONGFORMAT, and the way that the other machine has its dates set.
So I'm wondering how to make my app read the current user's date formats?
I'm presuming that once I know what they're using, I can reliable predict which reformatting I'll need so that my app can display all dates as yyyy-mm-dd.
Thanks,
-John
I wrote it in FireFly, and it works fine on my XP. However, when I ran it on another XP, I found my dates truncated and containing extraneous characters. I tried to change the short and long formats on the second machine, but that didn't seem to help.
I think this has to do with conflicts between my development machine, where I have the date format set to yyyy-mm-dd (eg: 2009-07-01), the way that the DatePick32 control sees the LONGFORMAT, and the way that the other machine has its dates set.
So I'm wondering how to make my app read the current user's date formats?
I'm presuming that once I know what they're using, I can reliable predict which reformatting I'll need so that my app can display all dates as yyyy-mm-dd.
Thanks,
-John
Comment