Answers for "date format for input to localdatetime"

1

html datetime-local format dd/mm/yyyy

<!--in input form we can set date format in dd/mm/yyyy using placeholder-->
<input type="date" placeholder="dd/mm/yyyy"> <!--use form tag currectly for see the changes-->
Posted by: Guest on April-18-2021
0

formatting specific date and time in localdatetime

String dateTime = "1995-07-25 15:03:45";
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
LocalDateTime date = LocalDateTime.parse(dateTime, dateTimeFormatter);
Posted by: Guest on August-07-2020

Code answers related to "date format for input to localdatetime"

Browse Popular Code Answers by Language