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

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

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