0

I need Date strings sent to sencha frontend of the form:

'Wed Jan 10 2007 15:05:01 GMT-0600 (Central Standard Time)'

I'm unable to get the right text formatter string to output in this form. Has anyone converted a Java Date object to this format ?

PS: not a duplicate of time lag while converting between timezones,

Its a query to get Dates in a specific format required for frontends using sencha which isn't answered by the "dd-MM-yyyy HH:mm:ss" format used in this post

Community
  • 1
  • 1
ir2pid
  • 4,686
  • 10
  • 51
  • 94

1 Answers1

1

This is the format pattern you need:

"EEE MMM dd yyyy HH:mm:ss zZ (zzzzzzz)"
Jens
  • 63,364
  • 15
  • 92
  • 104