I have been given the following code in C#:
int Year, Month, Day, Hour, Min, Sec;
....
//Assign Year, Month,..etc Value
....
DateTime date = new DateTime(Year, Month, Day, Hour, Min, Sec);
return date.ToString();
Could someone please suggest the C++ equivalent (for C++Builder XE)? The C# code converts a date and time according to the Local Region specified in the Windows OS. I want the same functionality in my C++ code. How can I achieve this?
All year, month, etc values are available in my C++ code.