• Post Reply Bookmark Topic Watch Topic
  • New Topic

DateFormat?  RSS feed

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The original Date is :Mon May 15 16:17:19 CST 2006
I want to format it like this: "hh:mm:ss dd-MMM-yyyy", So I add two lines.
Now the resuslt is: 01:17:19 15-五月-2006, that reflect the local I am. What I want is :01:17:19 15-May-2006, So I set the TimeZone.

Suprise! The result still is: 01:17:19 15-五月-2006
Why this happened? And how to get what I want?

Thank you in advance.
[ May 15, 2006: Message edited by: Loius Wan ]
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem resolved by Locale.US.
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem resolved by Locale.US.
I want to ask if my application just run in US, does it a need to set Locale? I develope it in China, but it only used in US.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!