100 Days of Java challenges
Day 17 - Date
Write a program that performs the following tasks:
- Initialise a date variable with the current date as value and print it
- Print the current epoch time
- Initialise a date variable with the date 7 days before the current day
- Compare 2 dates with before, after and compareTo methods
- Print the current date in the following time zones: GMT, CST, IST
Community|Blog|Youtube Hunt|Logic Puzzles|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024