Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
-1 votes
2 answers
104 views

I have below code snippet : java.util.Calendar calendar = java.util.Calendar.getInstance(); curdate = "2025年01月31日T12:27:00" def parsedDate = new Date().parse("yyyy-MM-dd'T'HH:mm:ss&...
-1 votes
1 answer
87 views

I have writen the following code. I know it might not be the correct approach. but this is what i have done. public class ValidationRule { private static SimpleDateFormat sdf = new ...
0 votes
1 answer
58 views

What is the difference between ParseException and TokenManagerError? Topic: javaCC, generate parser, error message An example to explain would be good. Tries to read in literature or error message, ...
1 vote
1 answer
187 views

I'm trying to JOIN two tables in a DataBricks Notebook. The first line in the SQL statement is erroring-out. I can't determine why. The docs I've read say its typically due to a typo. But that is not ...
0 votes
1 answer
188 views

Why is ParseException not caught here? When I enter a date consisting of more than 4 digits it just accepts it, but it shouldn't as I set lenient to false. When I enter letters for the year I get ...
0 votes
2 answers
160 views

I want to convert a date format into another date format. For example, I have this String "05-Apr-23" and I want to convert it into this String "05/04/23". And I did this ...
1 vote
1 answer
1k views

In my android app, I am using following code to convert date in other format. But it is not working. var format = SimpleDateFormat("dd MMM, yyyy") var date2 = format.parse("1 Sep, 2022&...
1 vote
1 answer
409 views

Locale locale = new Locale("ar", "AE"); NumberFormat format = NumberFormat.getNumberInstance(locale); System.out.println(format.parse("55-")); The above ...
1 vote
1 answer
266 views

Will try to be precise in asking question. Sorry if couldn't do it up to the mark! Was given an assignment to automate api from the given below link https://restful-booker.herokuapp.com/apidoc/index....
0 votes
1 answer
280 views

I created an ontology using protegee and now want to insert data using RDFLIB in python. Because I have to write the update sparql statements in string and my data comes in various types including, ...
0 votes
1 answer
2k views

I am getting parseexception kw_end missing near 'as' error for the below query : Case when x=y then case when g<h then 2 else 0 end When x=z then case when i>k then 6 else 0 end else ...
5 votes
1 answer
5k views

I have a json column in table like: @Type(type = "jsonb") @Column(name = "json_data", columnDefinition = "json") private List<Persion> jsonData = ...
1 vote
1 answer
1k views

The question is to calculate the days between two dates. Here's my code public static void main(String[] args) throws ParseException { // TODO Auto-generated method stub SimpleDateFormat sdf=...
0 votes
0 answers
450 views

I'm trying to insert a flowfile from NiFi into PostgreSQL database. Flowfile is a JSON which keys are: id, timestamp, metric1, metric2, ..., and I have problems with timestamp data. This is the value ...
0 votes
4 answers
631 views

I don't know why there is no error. The code is String datestr = "2021年01月01日"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); try { System.out.println(sdf.parse(...

15 30 50 per page
1
2 3 4 5
...
13

AltStyle によって変換されたページ (->オリジナル) /