From 9af6fe4efd5c68e8cc165962743b5490091ea3f4 Mon Sep 17 00:00:00 2001 From: Mariqus1616 Date: Mon, 18 Mar 2024 22:56:12 -0700 Subject: [PATCH 1/4] I think I am done with lab. --- src/date.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/date.java diff --git a/src/date.java b/src/date.java new file mode 100644 index 0000000..f017b8e --- /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 currentDate = new Date(); + + SimpleDateFormat dateFormat = new SimpleDateFormat("18/03/2024"); + + String formattedDate = dateFormat.format(18/03/2024); + + System.out.println("18/03/2024/: " + formattedDate); + + } +} From 57b6a4318df6616a823167e7f1ee7aefad9c8db5 Mon Sep 17 00:00:00 2001 From: Mariqus1616 Date: Mon, 18 Mar 2024 22:59:10 -0700 Subject: [PATCH 2/4] I think I am done with lab. --- src/date.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/date.java b/src/date.java index f017b8e..57d1694 100644 --- a/src/date.java +++ b/src/date.java @@ -4,7 +4,7 @@ public class date { public static void main(String[] args) { - Date currentDate = new Date(); + Date = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("18/03/2024"); From 6be6cead989169d8b424b15cc72926f95e2da2d6 Mon Sep 17 00:00:00 2001 From: Mariqus1616 Date: Mon, 18 Mar 2024 23:00:35 -0700 Subject: [PATCH 3/4] I think I am done with lab. --- .idea/misc.xml | 1 - 1 file changed, 1 deletion(-) 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 @@ - From c49d185012b7f1602728b36f9bc0de4e0611caef Mon Sep 17 00:00:00 2001 From: Mariqus1616 Date: Wed, 20 Mar 2024 14:04:18 -0700 Subject: [PATCH 4/4] I think I am done with lab. --- src/date.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/date.java b/src/date.java index 57d1694..7aedbb4 100644 --- a/src/date.java +++ b/src/date.java @@ -4,7 +4,7 @@ public class date { public static void main(String[] args) { - Date = new Date(); + Date d= new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("18/03/2024");