how can I parse my date stored as a String to a different format in Java?

user3766930

Currently I have a String field that stores date in a following format:

"2017-04-19 godz. 20:00"

I need to parse it to the format:

2017-04-19T20:00:00Z

Can you give me a hint how can I do it in java?

VDanyliuk

Use java.time.format.DateTimeFormatter for Java 8.

Or java.text.SimpleDateFormat for Java 7.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I parse a date (provided as a string) in the "ddMM" format and convert it to a Date Object in Java?

Parse String to Date with Different Format in Java

How do I parse this date format in Java?

how can i sort data by field stored string as Date format "yyyy/MM/dd HH:mm:ss"

How can I parse a string with the format "1/16/2019 1:24:51" into a POSIXct or other date variable?

How can I parse and format this string date 2022-11-08 10:28:04.282551-06?

How can I use parse_date_time() to covert my date variable to a different date-time variable?

Parse UTC date string and convert to different format

How can I calculate date with different date format in SAS EG

How do I convert my date string to a custom date format?

How can I format date by locale in Java?

How can I change the date format in Java?

how can I format a date in java with "ff"?

How can I call a different python script that is stored on my network?

How can I parse this date format into datetime? Python/Pandas

How do I convert my date into a slightly different format

Java parse date from TextField with a different format

How can I reverse the string and parse it with '-' in Java

How can I parse a HTML string in Java?

How can I format a string into a date: time format?

How do I parse date String into Date object in Java?

my json start with XML <string> [{.....}] </string> how can I parse it?

How can I parse a C format string in Python?

How can I parse string to produce specific alphanumeric format

How Can I Correctly Format a String In Java?

Parse date string to a specific format in Java

How can I parse RFC 3339 date string into ZondeDateTime?

What is this data format and how can I parse that do Java model

How can i parse this respose to my Array of string