I am trying to display last months date (from the current date) in a date time picker control.
This is what I have used:
lastMonth := DateToStr(date);
lastMonth := Copy(lastmonth, 1, 3) +
IntToStr(intMonth) + '/' +
Copy(lastmonth, 7,4);
However, doesn't always work correctly. Is there a better way?
------------------------------------
There's no place like 127.0.0.1
------------------------------------
This is what I have used:
lastMonth := DateToStr(date);
lastMonth := Copy(lastmonth, 1, 3) +
IntToStr(intMonth) + '/' +
Copy(lastmonth, 7,4);
However, doesn't always work correctly. Is there a better way?
------------------------------------
There's no place like 127.0.0.1
------------------------------------