Skip to content

Tag: datetime-format

What is pattern for 2000-11-10T00:00:00+02:00

I need to convert string in 2000-11-10T00:00:00+02:00 format to LocalDateTime object. But when I parse this string to LocalDateTime, it gives error. Which pattern should I use to parse the string to LocalDateTime object? Answer Your string contains time zone and LocalDateTime does not contgain this informatio…

get timezone in “+0100” (for example) format

I got lost between the documentation and the numerous time-related questions found by google. What I want is very simple: a string that represents the running timezone in the “[+/-] [number] [number] [number] [number]” format (for instance “+0100”). My current code is: which returns &#…