|
|
Where to set date format that affect Date.toString() ?
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: nawk: out of space in tostring on ... - comp.lang.awkBEGIN{ # Set initial values of ... Output format of the file contains a date (client birth date or ... lang.awk nawk: out of space in tostring on ... - comp.lang.awk Date ... Set JComboBox 's JTextField into JFormattedTextField, how? - comp ...... setText("Value: "+format.format(b.getSelectedItem()).toString ... addItem(new java.util.Date(100000000000L ... How to set a format in JFormattedTextField? - comp ... Putting date and time in input feild of form?!?! - comp.lang ...... But realize that this is the date and time as set on the ... will accept specifically; IIRC, the format of DateObj.toString ... Date/time to date format in PROC SQL - comp.soft ... How to change date ? - comp.unix.solarisIs it possible to have a modification date set to ... unix.solaris Hi all, I would like to chage to date format ... in the operating system, these settings affect the Date ... prefix workspace variables with name of input datafile - comp.soft ...... like to know if its possible to set the workspace variable names to all be of the format ... EVAL, which will have a negative impact ... Date: 16 Aug, 2010 10:27:04. Message ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Help needed: read 3-dimensional array from a MAT-file in Fortran ...A quick'n dirty solution is to skip the .mat format ... to the target array of this pointer will *not* affect the ... intelf11msvs2005opts.stp # $Revision: 1.1.6.1 $ $Date ... Globally replace table name in access queries - comp.databases.ms ...... change this so all the persons are ... does not affect ... pass through query from access to oracle - date format - comp ... ... executing query such as: update [table_name] set ... Converting from Y-m-d h:m:s - comp.protocols.time.ntp... YYYY MM DD HH mm ss to a timespec value to set the ... one of the rewrites of the ntp internal to/from date ... How to convert a mysql datetime in PHP to m/d/y format? EMSDIST in TACL script. - comp.sys.tandem... would do the same as the above filter table: [#SET ... the part of the event formatting that displays the date ... That will not affect the formatting done by other places ... Standard Date and Time Format StringsAny date and time format string that contains more ... if the styles parameter is set to ... it to a string using a custom format string (such as DateTimeOffset.UtcNow.ToString ... DateTime.ToString Method (String)... MMM d \"'\"yy", "dddd, MMMM dd", "M/yy", "dd-MM-yy", ]; var date : String; for (var i : int = 0; i < format.Length; i++) { date = dt.ToString(format[i ... 7/18/2012 2:08:06 AM
|
|
|
|
|
|
|
|
|