+ 2

How to change the date format Using java codes

Date date = new Date(); date.setHours(date.getHours() + 8); System.out.println(date); SimpleDateFormat simpDate; simpDate = new SimpleDateFormat("kk:mm:ss"); System.out.println(simpDate.format(date));

18th Feb 2019, 7:36 AM
Mohammed Osman Izzeldin
Mohammed Osman Izzeldin - avatar
2 Respuestas
23rd Feb 2019, 10:14 PM
Андрей Чачин, Andrew Chachin
Андрей Чачин, Andrew Chachin - avatar
+ 2
good
24th Feb 2019, 2:32 PM
Mohammed Osman Izzeldin
Mohammed Osman Izzeldin - avatar