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 MethodsJS Date Set MethodsJS Date StringsJS Date Formatsjavascript 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.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心