Questions tagged as 'simpledateformat'

2
answers

I can not format date

I'm trying to format one date to be the same as another, the first comes straight from the bank but the other needs to be in the same format. Calendar cal = Calendar.getInstance(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Stri...
asked by 03.07.2018 / 00:00
1
answer

Formatting Data with SimpleDateFormat

My problem is this: I have JTable with several populated columns with data pulled from my database. Some of these columns are time values, for example, 0834 is pulled from the database and I would like it to be displayed 08:34...
asked by 17.11.2016 / 03:40
1
answer

Remove options from input field of datetime-local type

I have an input field of type datetime-local and I need it to be as clean as possible, with no cleanup or step buttons and just displaying the date and time in that format: '12 / 12/2016 12:01 ', I would like to know how I can configure this fie...
asked by 29.12.2016 / 18:09
0
answers

JasperSoft - Date Format

Hello, We have the following version of JasperSoft: <serverInfo> <build>BUILD_DATE_STAMP_BUILD_TIME_STAMP</build> <dateFormatPattern>yyyy-MM-dd</dateFormatPattern> <datetimeFormatPattern>yyyy-MM-...
asked by 17.05.2018 / 13:39
2
answers

How to save in Date type in this format 10-10-2017 using SimpleDateFormat?

How can I save a Date in the format 10-10-2017 using SimpleDateFormat ? Date data = null; SimpleDateFormat formato = new SimpleDateFormat("yyyy/MM/dd"); try { data = formato.parse(dataInicio); } catch (ParseException e...
asked by 13.11.2017 / 19:48
0
answers

How to format date in UTC format for yyyy-mm-dd [duplicate]

I'm working with the XML of an NF-e where the date fields are in UTC format (YYYY-MM-DDThh: mm: ssTZD) and need to insert them into the database in the format yyyy-mm-dd. p> I'm using SimpleDateFormat to try to do the conversion, but I get a...
asked by 20.11.2017 / 14:29