Skip to content

✏ enhanced readability by formatting date strings#34

Open
ayangupta9 wants to merge 1 commit into
hrishi7:masterfrom
ayangupta9:changes-by-ayan
Open

✏ enhanced readability by formatting date strings#34
ayangupta9 wants to merge 1 commit into
hrishi7:masterfrom
ayangupta9:changes-by-ayan

Conversation

@ayangupta9
Copy link
Copy Markdown

Issue Description

'Released On' and 'Aired On' dates were formatted in DD/MM/YYYY format

Changes

  • Reformated date format into readable to provide better User Experience by creating formatDate function in formatDate.js

Screenshots

BEFORE

before_01
before_02

AFTER

after_01
after_02

@ayangupta9 ayangupta9 mentioned this pull request Sep 3, 2021
Comment thread js/indexMovies.js
'https://api.themoviedb.org/3/discover/movie?api_key=ca5d667528ca51e527d9e4f7830d97d2&language=en-US&sort_by=popularity.desc&include_adult=false'
)
.then(response => {
let movies = response.data.results
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also add checks to see if results exists or is defined then only the code should proceed further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants