Skip to content
Advertisement

java format particular date with T character

What is the correct form for parse this date?: 2015-05-29T00:00:00+02:00

JavaScript

Advertisement

Answer

Try with

JavaScript

Notice that

  • MM represents months, while mm represents minutes.
  • if you want to have 24h format use HH, hh is for 12h format
  • XXX represents time zone in format like -08:00
  • to add literal like T in format you need to surround it with single quotes ' like 'T'
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement