Code Monkey home page Code Monkey logo

erikote04 / date-formatter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15 KB

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

Home Page: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-the-date-object-by-building-a-date-formatter

HTML 59.46% CSS 22.87% JavaScript 17.67%
css date format-date formatter get-date get-full-year get-month html html-css-javascript javascript

date-formatter's Introduction

Learn the 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: git clone https://github.com/Erikote04/Date-Formatter.git
  2. Open index.html in your preferred web browser.
  3. Begin to learn about the Date object!

date-formatter's People

Contributors

erikote04 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.