Skip to content

Project No. 4 of 21 of the freeCodeCamp course "JavaScript Algorithms and Data Structures". In this project, you can see how to work with the JavaScript Date object, including its methods and properties. You can also see how to correctly format dates. This project will cover concepts such as the getDate(), getMonth(), and getFullYear() methods.

Notifications You must be signed in to change notification settings

jaganpofficial/Date-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Date Object by Building a Date Formatter

This project focuses on utilizing the JavaScript Date object to build a simple Date Formatter web application.

dd-mm-yyyy

yyyy-mm-dd

dd-mm-yyyy, hh:mm

Introduction

The Date Formatter project demonstrates the application of the JavaScript Date object to retrieve and format the current date based on user preferences. The formatted date is displayed in different formats, allowing users to explore and understand the Date object.

Usage

The application, upon opening, displays the current date in the default format (dd-mm-yyyy). Users can choose different date formatting options from the dropdown menu.

Date Formatting Options

The application supports the following date formatting options:

  • Day, Month, Year (dd-mm-yyyy): Default format.
  • Year, Month, Day (yyyy-mm-dd): Reversed order.
  • Month, Day, Year, Hours, Minutes (mm-dd-yyyy-h-mm): Includes hours and minutes.

To change the date format, select an option from the dropdown menu, and the displayed date will update accordingly.

Getting Started

To run the project locally, follow these steps:

  1. Clone the repository: https://github.com/jaganpofficial/Date-formatter.git
  2. Open index.html in your preferred web browser.
  3. Begin to learn about the Date object!

About

Project No. 4 of 21 of the freeCodeCamp course "JavaScript Algorithms and Data Structures". In this project, you can see how to work with the JavaScript Date object, including its methods and properties. You can also see how to correctly format dates. This project will cover concepts such as the getDate(), getMonth(), and getFullYear() methods.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published