user100DaysOfCode
CommunityDevTermsResources|Login

Loading

Java Roadmap

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
<Prev|Next>

Learning Resources |View Complete Plan

Looking for puzzle challenges?

Anagram Arena

Unscramble letters against the clock

Minesweeper

Clear the board without hitting a mine

Hangman

Guess the word before the man falls

Daily Puzzles App

15+ word & logic games. Build your daily streak!

App Store

      Sponsor Us|Community|Blog|Youtube|DLPCareersContact UsDisclaimerPrivacy PolicyTerms of Service
      Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
      100DaysOfCode@2024