Linked Questions

104 votes
12 answers
219k views

I am trying to parse a date that looks like this: 2010-04-05T17:16:00Z This is a valid date per http://www.ietf.org/rfc/rfc3339.txt. The 'Z' literal (quote) "imply that UTC is the preferred ...
DanInDC's user avatar
  • 5,189
36 votes
3 answers
128k views

I could not find this anywhere. I fetch some JSON from an API that returns standard JSON dates. You can see the format by running this code in a JavaScript console: > new Date().toJSON(); "2010-10-...
Felix's user avatar
  • 89.7k
5 votes
2 answers
37k views

The time that I am getting is in the format "2011-07-31T08:16:37.733Z". Actually the Z should be the timezone and then that time is converted to local timezone. How do I actually convert this time to ...
sunil's user avatar
  • 9,701
4 votes
4 answers
26k views

For example, I have this String: 06/10/2013 18:29:09. I want to convert this string and put it in a SQL database (as Date). How can I convert this to an sql date, so that it could be inserted into a ...
n00b1990's user avatar
  • 1,249
1 vote
3 answers
53k views

How do I can parse this date 2018-01-09T11:11:02.0+03:00 to dd.MM.yyyy hh:mm format in Android? And what does T between 09 and 11 mean? Thanks. I don't know how the back-end developer got this ...
picKit's user avatar
  • 463
2 votes
4 answers
15k views

Possible Duplicate: Converting ISO8601-compliant String to java.util.Date I'm trying to convert this String: 2011-06-07T14:08:59.697-07:00 To a Java Date, so far, here's what I did: ...
Cyril N.'s user avatar
  • 40.1k
2 votes
8 answers
11k views

what would be the easiest way to parse this date format below in java?: 2010-09-18T10:00:00.000+01:00 i read the DateFormat api in java and could not find a method that takes a string or even this ...
Jono's user avatar
  • 18.2k
2 votes
2 answers
18k views

I am trying to convert a string into an ISO 8601 date-time format. Currently, this code String s1 = "2001-05-03T00:00:00+00:00"; Date firstAvailableDateTime = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:...
Ryan's user avatar
  • 53
3 votes
2 answers
14k views

I will have a String input in the style of: yyyy-MM-dd'T'HH:mm:ssZ Is it possible to convert this String into a date, and after, parsing it into a readable dd-MM-yyyy Date Object?
Ivafo's user avatar
  • 7,729
2 votes
2 answers
21k views

All, I know I have asked a similar question on parsing an ISO8601 date string into a Date using Java before, but this is a more specific problem using the SimpleDateFormat class. I have read the ...
Andez's user avatar
  • 5,908
2 votes
3 answers
7k views

How do I format an ISO-8601 string 2020-02-10T22:55:13-08:00 into a custom format like 1:30pm? I kept getting unparseable date exception. My code snippet is below: String string = "2020-02-10T22:...
selbay84's user avatar
1 vote
1 answer
9k views

Which format I should use to parse a String date (using ISO 8601) in Scala? 2018-12-13T19:19:08.266120+00:00 I just try some patterns but no success. This code show me a near date as String, but ...
seufagner's user avatar
  • 1,370
1 vote
2 answers
9k views

Possible Duplicate: Converting ISO8601-compliant String to java.util.Date I have issues when changing the timestamp to ISO 8601 in JS as it errors at 'topicDate' in IE and Firefox, but it works in ...
user1595858's user avatar
  • 3,890
-1 votes
4 answers
4k views

One of the fields of my json is a String which contains time in the following format: 2017-04-04T20:22:33 or even 2017-04-07T12:21:10.0355277+00:00. My task is to convert it to a more simple ...
SpKiwi's user avatar
  • 222
0 votes
2 answers
4k views

I have the following timestamp in String format 2019-04-06T00:43:21+00:00 2019-04-04T21:24:33+00:00 2019-04-04T21:02:16+00:00 How can I parse the timestamp strings above to Java.sql.timestamp?
Arya's user avatar
  • 9,055

15 30 50 per page
1
2 3 4 5
12