title: C++ wxWidgets - Creating wxDateTime from wxString
body: <p>I have a <code>wxString</code> that contains hours, minutes, seconds, and milliseconds.  I'm trying to create a <code>wxDateTime</code> from this information.  I can either leave it in the format of <code>"%H:%M:%S.%f"</code> or I can grab the values individually.</p>
  
  <p>My first thought was to use the <code>wxDateTime</code> constructor that takes in h, m, s, ms, however I can't find how to create a <code>wxDateTime_t</code> anywhere to pass into this.</p>
  
  <p><code>wxDateTime&amp; wxDateTime(wxDateTime_t hour, wxDateTime_t minute = 0, wxDateTime_t second = 0, wxDateTime_t millisec = 0)</code></p>
  
  <p>I've also been looking a lot at <code>wxParseTime</code> where I would use the default <code>wxDateTime</code> constructor and then call this, but I don't know how to pass in the time as a <code>const wxChar*</code> correctly to this function.</p>
  
  <p><code>const wxChar * ParseTime(const wxChar *time)</code></p>
  
  <p>Can anyone give any insight on either of these ideas or give a better approach to this?</p>
  
  <p>I've been getting my info through this site <a href="http://www.wxwidgets.org/docs/" rel="nofollow">wxwidgets</a>.</p>
  
  <p>Thanks in advance for any help!</p>
  
  <p>Additional info:
  <a href="http://docs.wxwidgets.org/stable/wx_wxdatetime.html#wxdatetime" rel="nofollow">wxDateTime::wxDateTime</a>,
  <a href="http://docs.wxwidgets.org/stable/wx_wxdatetime.html#wxdatetimeparsetime" rel="nofollow">wxDateTime::wxParseTime</a>.</p>