Online Java Compiler By
JavaTpoint.com
import java.util.Date; public class JavaDateToLocaleStringExample1 { public static void main(String[] args) { Date d=new Date(); System.out.println("Current date to local string : "+d.toLocaleString()); } }
Output