Working with Dates
Welcome to the "Working with Dates" Practice Lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.
Already have an account? Sign In »
Welcome to the Working with Date Practice Lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.
In this module, you will complete the following exercise:
- Exercise 1 - Working with Dates
After completing this lab, you will be able to:
- Retrieve date and time part
- Add and subtract dates
The following exam objective is covered in this lab:
- 2.3 Complete and debug code that uses objects
It will take approximately 20 minutes to complete this lab.
Exercise 1 - Working with Dates
You will enhance the Digital Clock created in the previous module with new operations. Using the Date object methods, you will work with dates at run-time. You will perform addition and subtraction of dates. You will calculate a later date and an earlier date with the help of Date object methods. You will receive a birthday wish if you enter your date of birth in the application.
In this exercise, you will learn how to retrieve the date, add days to the date, subtract days from the date, and find the difference between two dates. You will perform the following tasks:
- Task 1 - You will download the Visual Studio Code workspace (DigitalClock) from the Intranet and open the HTML page named DigitalClock.html in the DigitalClock workspace.
IT & Cybersecurity certification hands on practice labs and practice exams for certifications and skill development.
See the full benefits of our immersive learning experience with interactive courses and guided career paths.