title: Convert date in string(Mon Jan 16:20:12 India Standard Time 2014) to java.util.date in JAVA
body: <p>I want to convert this (Mon Jan 16:20:12 India Standard Time 2014) Date in string to java.util.Date in java how can I do it. I want the date in the following format.</p>
  
  <pre><code>SimpleDateFormat formatter = new SimpleDateFormat(
                  "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", Locale.US);
  </code></pre>
  
  <p>Actually the Date (Mon Jan 16:20:12 India Standard Time 2014) is argument from MFC application which will be launching a executable jar file and the date in string will be its argument. MFC Code that will launch the executable jar. with argument.</p>
  
  <pre><code>CString csCurrentTime = CTime::GetCurrentTime().Format("%a %b %X %Z %Y");
      TRACE(csCurrentTime);
      if (CreateProcess(m_csJrePath, TEXT(" -jar DbxUpldDwnld.jar %s",csCurrentTime), NULL, NULL, false, CREATE_NO_WINDOW, NULL, NULL, (LPSTARTUPINFOA)&amp;siStartupInfo, &amp;piProcessInfo) == false) {
          AfxMessageBox(_T("Please install Java Runtime Environment(JRE) on your PC\n Or JRE not found on given path in INI File."), MB_ICONERROR);
          CloseHandle(piProcessInfo.hProcess);
          CloseHandle(piProcessInfo.hThread);
          return;
      }
  </code></pre>
  
  <p>Also will it be possible to get the date with spaces as single argument in java.
  Please Help me, am new to MFC.</p>