Date.toString()
is locale independent. The most significant change that you can ever observe is the timezone, which depends on the timezone settings of your computer. This is by design.
Converts this Date object to a String of the form:
dow mon dd hh:mm:ss zzz yyyy
where:
dow
is the day of the week (Sun
,Mon
,Tue
,Wed
,Thu
,Fri
,Sat
).mon
is the month (Jan
,Feb
,Mar
,Apr
,May
,Jun
,Jul
,Aug
,Sep
,Oct
,Nov
,Dec
).dd
is the day of the month (01
through31
), as two decimal digits.hh
is the hour of the day (00
through23
), as two decimal digits.mm
is the minute within the hour (00
through59
), as two decimal digits.ss
is the second within the minute (00
through61
, as two decimal digits.zzz
is the time zone (and may reflect daylight saving time). Standard time zone abbreviations include those recognized by the method parse. If time zone information is not available, thenzzz
is empty - that is, it consists of no characters at all.yyyy
is the year, as four decimal digits.