I have some code that is doing a FormatDateTime function on a TDateTimePicker, but for some reason it will drop the leading zero from the month or day.
sample:
sMonth := FormatDateTime('mm', DateTimePicker1.DateTime);
sMonth should return a two digit month and it does 99% of the time, but that 1% of the time it does not.
Could this be a dll issue? i.e. Another program open that is using a DLL from its own folder and because it is in memory, my app uses it rather than the default in \system32 ??
Paul
Paul Wesson, Programmer/Analyst
sample:
sMonth := FormatDateTime('mm', DateTimePicker1.DateTime);
sMonth should return a two digit month and it does 99% of the time, but that 1% of the time it does not.
Could this be a dll issue? i.e. Another program open that is using a DLL from its own folder and because it is in memory, my app uses it rather than the default in \system32 ??
Paul
Paul Wesson, Programmer/Analyst