Skip to content
sneppets

sneppets

  • Algorithms
  • Interview Programs
  • Datastructures
  • Java
  • Golang
  • Cloud
sneppets-java8

Get time units hours and minutes from Date in String format

February 10, 2020February 12, 2020 Editorial StaffLeave a Comment on Get time units hours and minutes from Date in String format

This tutorial shows how to get time units hours and minutes from Date in String format using java.text.SimpleDateFormat class. SimpleDateFormat class allows us to format date to text and to parse text to date.

Java Date, hours, java, simpledateformat
sneppets-java8

Format LocalDate to String or int with Month and Day in double digit

January 30, 2020February 12, 2020 Editorial StaffLeave a Comment on Format LocalDate to String or int with Month and Day in double digit

Let’s say you wanted to format LocalDate like yyyyMMdd with date’s month and day values in double digit to String or int, then follow this tutorial.

Java Calendar, Date, java, LocalDate
sneppets-java8

Java 8 – Convert LocalDate to Date ?

November 15, 2019November 17, 2019 Editorial StaffLeave a Comment on Java 8 – Convert LocalDate to Date ?

Below Java 8 examples shows how to convert from LocalDate to Date and vice versa.

Java Date, java8, LocalDate
Copyright © 2018 Sneppets. All Rights Reserved