Work with Dates in JavaScript

提供方
Coursera Project Network
在此指导项目中,您将:

Describe how JavaScript dates are stored and displayed.

Extract components from a date object using JavaScript Date Get Methods.

Modify a JavaScript date object using Date Set Methods.

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

By the end of this project, you will have learned to create and manipulate date objects in JavaScript. You will work with dates by using Date Get methods to isolate and use portions of a date—like month and year—and Date Set methods to set portions of a date to specific values. Since dates are often critical pieces of data, the ability to control them is an essential skill for any JavaScript programmer. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

  • JS Date Get Methods
  • JS Date Set Methods
  • JS Date Strings
  • JS Date Formats
  • javascript syntax

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Demonstrate the three methods of creating a date object in JavaScript.

  2. Write the JavaScript code to use dates in a variety of formats including UTC and ISO strings.

  3. Use a JavaScript Get Method to extract the month from a date object and use an array to display the month name.

  4. Create a new date string by using Date Get Methods to extract components from the JavaScript date object and concatenating those components.

  5. Modify existing values in a date object using JavaScript Date Set Methods.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心