次のコードを使用して文字列を日付に変換しましたが、変換中にデバイスのタイムゾーンを適用しています。
これは必要ありませんが、その文字列から同じ日付/時刻が必要です
String = "2009-07-31 07:59:17.427"
Date = 2009-07-31 07:59:17.427
Date formatter = new Date(HttpDateParser.parse("2009-07-31 07:59:17.427"));
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
String strCustomDateTime = dateFormat.format(formatter);