title: get selected date from DATETIMEPICK_CLASS win32 (NOT mfc)
body: <p>I have 1 <strong>datetimepick_class</strong> control placed on <strong>win32 form</strong>. I create it like below:</p>
  <pre class="lang-cpp prettyprint-override"><code>HWND Date = CreateWindowEx(
      0,
      DATETIMEPICK_CLASS,
      TEXT(&quot;DateTime&quot;),
      WS_BORDER | WS_CHILD | WS_VISIBLE ,
      10, 10
      250, 30,
      hWnd,
      (HMENU)IDC_DATE_TIME_PICK,
      hInst,
      NULL
  );
  </code></pre>
  <p>And I have <strong>button</strong>. I want when this <strong>button clicked</strong>, it should get <strong>selected date value</strong> from that mentioned <strong>datetimepick</strong> widget.</p>
  <p>I handle button clicked event as below:</p>
  <pre class="lang-cpp prettyprint-override"><code>switch (message)
  {
      case WM_COMMAND:
      {
          int wmId = LOWORD(wParam);
          switch (wmId)
          {
              case IDC_Calculate_Button: 
              //Button clicked so 
              //Display selected date value in msgbox  
          }
  }               
  </code></pre>
  <p>I tried existing answers but they are rare or not well documented or in detailed.
  Please guide me.</p>