我想你所傳遞的字符串不是預期的格式。請參閱RIM BlackBerry API的link瞭解更多信息。
的格式的字符串應該是是否HttpDateParser只接受時間的這些
"Wdy, DD Mon YY"
"Wdy, DD Mon YYYY"
"Wdy, DD Mon YY HH:MM:SS"
"Wdy, DD Mon YY HH:MM:SS GMT"
"Wdy, DD Mon YY HH:MM:SS TZD"
"Wdy, DD Mon YY HHMMSS"
"Wdy, DD Mon YY HHMMSS GMT"
"Wdy, DD Mon YY HHMMSS TZD"
"Wdy, DD Mon YYYY HH:MM:SS"
"Wdy, DD Mon YYYY HH:MM:SS GMT"
"Wdy, DD Mon YYYY HH:MM:SS TZD"
"Wdy, DD Mon YYYY HHMMSS"
"Wdy, DD Mon YYYY HHMMSS GMT"
"Wdy, DD Mon YYYY HHMMSS TZD"
"Wdy, Mon DD YY HH:MM:SS"
"Wdy, Mon DD YY HH:MM:SS GMT"
"Wdy, Mon DD YY HH:MM:SS TZD"
"Wdy, Mon DD YY HHMMSS"
"Wdy, Mon DD YY HHMMSS GMT"
"Wdy, Mon DD YY HHMMSS TZD"
"Wdy, Mon DD YYYY HH:MM:SS"
"Wdy, Mon DD YYYY HH:MM:SS GMT"
"Wdy, Mon DD YYYY HH:MM:SS TZD"
"Wdy, Mon DD YYYY HHMMSS"
"Wdy, Mon DD YYYY HHMMSS GMT"
"Wdy, Mon DD YYYY HHMMSS TZD"
"Wdy, DD Mon YY, HH:MM:SS"
"Wdy, DD Mon YY, HH:MM:SS GMT"
"Wdy, DD Mon YY, HH:MM:SS TZD"
"Wdy, DD Mon YY, HHMMSS"
"Wdy, DD Mon YY, HHMMSS GMT"
"Wdy, DD Mon YY, HHMMSS TZD"
"Wdy, DD Mon YYYY, HH:MM:SS"
"Wdy, DD Mon YYYY, HH:MM:SS GMT"
"Wdy, DD Mon YYYY, HH:MM:SS TZD"
"Wdy, DD-Mon-YY HH:MM:SS"
"Wdy, DD-Mon-YY HH:MM:SS GMT"
"Wdy, DD-Mon-YY HH:MM:SS TZD"
"Wdy, DD-Mon-YY HHMMSS"
"Wdy, DD-Mon-YY HHMMSS GMT"
"Wdy, DD-Mon-YY HHMMSS TZD"
"Wdy, DD-Mon-YY, HH:MM:SS"
"Wdy, DD-Mon-YY, HH:MM:SS GMT"
"Wdy, DD-Mon-YY, HH:MM:SS TZD"
"Wdy, DD-Mon-YY, HHMMSS"
"Wdy, DD-Mon-YY, HHMMSS GMT"
"Wdy, DD-Mon-YY, HHMMSS TZD"
"Wdy, DD-Mon-YYYY HH:MM:SS"
"Wdy, DD-Mon-YYYY HH:MM:SS GMT"
"Wdy, DD-Mon-YYYY HH:MM:SS TZD"
"Wdy, DD-Mon-YYYY HHMMSS"
"Wdy, DD-Mon-YYYY HHMMSS GMT"
"Wdy, DD-Mon-YYYY HHMMSS TZD"
"Wdy, DD-Mon-YYYY, HH:MM:SS"
"Wdy, DD-Mon-YYYY, HH:MM:SS GMT"
"Wdy, DD-Mon-YYYY, HH:MM:SS TZD"
"Wdy, DD-Mon-YYYY, HHMMSS"
"Wdy, DD-Mon-YYYY, HHMMSS GMT"
"Wdy, DD-Mon-YYYY, HHMMSS TZD"
"Weekday, DD-Mon-YY HH:MM:SS"
"Weekday, DD-Mon-YY HH:MM:SS GMT"
"Weekday, DD-Mon-YY HH:MM:SS TZD"
"Weekday, DD-Mon-YY HHMMSS"
"Weekday, DD-Mon-YY HHMMSS GMT"
"Weekday, DD-Mon-YY HHMMSS GMT"
"Weekday, DD-Mon-YYYY HH:MM:SS"
"Weekday, DD-Mon-YYYY HH:MM:SS GMT"
"Weekday, DD-Mon-YYYY HH:MM:SS TZD"
"Weekday, DD-Mon-YYYY HHMMSS"
"Weekday, DD-Mon-YYYY HHMMSS GMT"
"Weekday, DD-Mon-YYYY HHMMSS TZD"
"Wdy Mon DD HH:MM:SS YYYY"
"YYYY" (eg 1997)
"YYYY-MM" (eg 1997-07)
"YYYY-MM-DD" (eg 1997-07-16)
"YYYY-MM-DDThh:mmTZD" (eg 1997-07-16T19:20+01:00)
"YYYY-MM-DDThh:mm:ssTZD" (eg 1997-07-16T19:20:30+01:00)
"YYYY-MM-DDThh:mm:ss.sTZD" (eg 1997-07-16T19:20:30.45+01:00)
感謝它工作:) – user1195292 2012-03-27 11:39:50