Where to set date format that affect Date.toString() ?

  • Follow


Hi all,The result of Date.toString() in my applications differs on twocomputers. We use win XP sp 2.Below are the difference :Wed May 09 00:00:00 GMT+07:00 2007Wed May 09 00:00:00 ICT 2007I go to Control Panel, but even in Regional Setting I can not find theplace where to set it.Where is it ?Thank you for your help,xtanto
0
Reply krislioe (119) 5/9/2007 6:33:38 AM

Hi,I'm not sure whether you can set in Regional Setting, but as you see,it will defer based on different computer settings. So, why don't youuse the utility provided by JAVA to format your date output, so youcan see the same result even on different computer.Use class SimpleDateFormat is a good choice.SimpleDateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ssyyyy");df.format("new Date()");HarryOn May 9, 2:33 pm, krisl...@gmail.com wrote:> Hi all,>> The result of Date.toString() in my applications differs on two> computers. We use win XP sp 2.> Below are the difference :>> Wed May 09 00:00:00 GMT+07:00 2007>> Wed May 09 00:00:00 ICT 2007>> I go to Control Panel, but even in Regional Setting I can not find the> place where to set it.> Where is it ?>> Thank you for your help,> xtanto
0
Reply Harry 5/9/2007 8:30:56 AM


1 Replies
136 Views

(page loaded in 0.038 seconds)

Similiar Articles:













7/18/2012 2:08:06 AM


Reply: