diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..b95853c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/src/date.java b/src/date.java new file mode 100644 index 0000000..7aedbb4 --- /dev/null +++ b/src/date.java @@ -0,0 +1,16 @@ +import java.text.SimpleDateFormat; +import java.util.Date; + +public class date { + public static void main(String[] args) { + + Date d= new Date(); + + SimpleDateFormat dateFormat = new SimpleDateFormat("18/03/2024"); + + String formattedDate = dateFormat.format(18/03/2024); + + System.out.println("18/03/2024/: " + formattedDate); + + } +}