Hi Guys, I am using CDateTimeCtrl in my project.I dont know how to get Date, Month and Year Separatly.
If you Know explain me with simple code

Thanks in Advance

GetTime() with Format().

Read this. Call the control's GetTime() method, which returns a SYSTEMTIME structure. That structure contains what you are looking for.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.