2,652 questions
Score of 1
0 answers
88 views
Indonesia java date format "Agt" [duplicate]
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
Reading a string in java to proper Date format [duplicate]
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
SimpleDateFormat working on Non-English Locale(Nepali or Devnagari)
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
Android SimpleDateFormatter Parse Exception
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
ERROR: date/time field value out of range: "2024-02-12 170000892" SQL state: 22008
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
Possible values to be parsed using SimpleDateFormat
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
Change date format DatePickerDialog- Android studio Java
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
How might my API be receiving an incorrectly formatted ISO 8601 timestamp
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
SimpleDateFormat gives a wrong date when input a wrong format date string
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
Execute Date arithmetic without daylight saving adjustment
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 got the error "java.text.ParseException: Unparseable date: "1/10/24 7:00 PM"" when trying to parse
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
Parse string date to millis in kotlin
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
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
Unparseable date Exception on Unit Testing via Mockito
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
Why is Java epoch time off by 30 minutes when parsing via SimpleDateFormat
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 ...