Dealing with date and time are being very easy from java8.
We have following important classes which are replacing the class Date.
LocalDate, LocalTime and LocalDateTime
We have following important classes which are replacing the class Date.
LocalDate, LocalTime and LocalDateTime
LocalDate
This is an immutable class which has no time-zone information. LocalDate is based on ISO-8601 calender's system. We view date in Year-month-day format. We can access day-of-year, day-of-week, week-of-year.
LocalTime
This is the class for dealing with time which will in the format hour-minute-second
LocalDateTim
This class for dealing with year-month-day-hour-minute-second which is the combination of Date and Time
Post a Comment
Post a Comment