I am using C++ Builder and am creating a GUI application using the TDateTime data type.
When I use the MonthOf() method on a TDateTime object, I am getting a value that is 1 month behind from the actual month of the TDateTime object.
Why is this? Is this a bug?
If you want to get current month try this code: