Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Score of 1
0 answers
88 views

Currently, in Java I have tested using IBM SimpleDateFormat and Java DateTimeFormat, both cannot parse "Rab, 25 Agt 2025" due to IBM and Java only recognize "Agu" Is there any ...
Score of 5
1 answer
208 views

I have a string: String inputDate = "18-FEB-24 10.02.33.578000000 AM"; I am trying to read it back and format it in YYYY-MM-DD HH:mm:ss.SSSSSS. I tried the SimpleDateFormat as well as ...
Score of 3
3 answers
327 views

I am having confusion on understanding the following piece of code: public static void main(String[] args) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); ...
Score of 3
3 answers
167 views

I have some old Java code that attempts to parse a string using SimpleDateFormat. It is frequently throwing a ParseException: Non-fatal Exception: java.text.ParseException: Unparseable date: "06:...
Score of 0
0 answers
102 views

I have the below query: INSERT INTO TEMP_USAGE_REPORTING (SELECT ABC.EPCCLASS_ID, ABC.EPCCLASS_SEARCH_PAT, ABC.SERIAL, ABC.EVENT_RECORD_DT, ABC.EVENT_RECORD_TM FROM (SELECT EVENT_EPC....
Score of -2
1 answer
154 views

Sorry to ask if this is a duplicate question as I try to find solutions online but couldn't get a confirmed answer. I would like to know the possible values that can be used to parse using ...
Score of -2
2 answers
257 views

Does anyone know how to change the date format in DatePickerDialog in Android studio in Java, I need like "Mon, May 6" I need like this format instead of "M05 6, Mon"Image link . ...
Score of 0
0 answers
88 views

I have an iOS/Android app sending data to the Python backend. In both apps, the user selects a date and time from a picker, and it is sent to the server: Android: SimpleDateFormat simpleDateFormat = ...
Score of 2
1 answer
165 views

code is SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss"); Date date = format.parse("2024-03-01 09:20:46"); the date's value is Sun Dec 03 00:01:09 ...
Score of 0
1 answer
99 views

I want to parse a Date from a String in NYC timezone, add 1 day and then output string. like: parse to date add 1 day output The problem is, that when I parse a date during the adjustment for ...
Score of 2
1 answer
867 views

I have a date string as "1/10/24 7:00 PM" (10th Jan.2024). How to parse it using SimpleDateFormat? String date_time = "1/10/24 7:00 PM"; Instant answer; try { answer = Instant....
Score of 1
3 answers
879 views

I am using SDF to parse a string date to millis with below code private fun dateToMilliseconds(dateValue: String): Long? { val sdf = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS") val date: ...
Score of -1
2 answers
122 views

How to convert a string with extra characters String str = "file-09-01-2024" pattern = "dd-MM-YYYY" using SimpleDateFormat with pattern = "dd-MM-YYYY" I don't know how ...
Score of 0
0 answers
142 views

In my case, i am in need of get the string date as format i prefer , below is the exact code i am using to get the return date as string Below is the Test Function: @Test fun `get formatted server ...
Score of 0
1 answer
188 views

Somehow parsing date time strings and converting them to milliseconds after the epoch works differently in different environments. It would seem something is off with the timezone or something. In ...

15 30 50 per page
1
2 3 4 5
177