First Thanks to Mr. Wayan Saryada for advice to Change Symbol of Currency Format.
In this code snippet you will learn how to change Currency Symbol Locale by DecimalFormat. First Of All we need create an instance of object Locale (we use US Locale). Then make e object DecimalFormat using […]
Hii… This Code will show us how to format Java LocalDate. DateTimeFormatter will help to convert LocalDate to String.
import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Arrays; import java.util.Locale; public class LocalDateFormatterMain { public static void main(String[] args) { //get date today LocalDate _now=LocalDate.now(); // DateTimeFormatter.ofPattern(PATTTERN_DATE, LOCALE ) […]
Java Util Date is Past, Now is a new Era, Java Time is a Future, my teacher say like that
Java 8 come with the new Api for Date. LocalDate is an immutable date-time object that represents a date, often viewed as year-month-day. Other date fields, such as day-of-year, day-of-week and week-of-year, can also be […]