Coder Social home page Coder Social logo

Comments (7)

chetsangnil avatar chetsangnil commented on September 20, 2024 1

I tried to put both date and time in the mock and it becomes quite long in the overview section. Therefore, we can put only "Date" in the overview section since we already show time in the request list.

You can use the first example of "Long date" style according to this w3school link below:
http://www.w3schools.com/js/js_date_formats.asp

Ex. Mar 25 2015

The reason I picked this format is because, US dating format is abit different than other places in the world where month comes before date. I thought that using the long date would eliminate that confusion.

date_v1

from home.

philliphoff avatar philliphoff commented on September 20, 2024

@chetsangnil What should be shown? (E.g. just the date, date and time, long or short form of date/time, etc.)

from home.

chetsangnil avatar chetsangnil commented on September 20, 2024

Date and time yep. I remember we used to have this before as well?

from home.

philliphoff avatar philliphoff commented on September 20, 2024

Yes, but there's a lot of ways we can display a date/time (e.g. long form with day of week, short form, do we include the year, etc.).

from home.

nikmd23 avatar nikmd23 commented on September 20, 2024

I second the long date format, though we may want to consider adding the time as a separate entry in the overview section.

I know it's already in the History, but if the user has scrolled away, then they lose that context.

@chetsangnil, if you agree with that, might I suggest we use the time format from the .toLocaleTimeString() method? It will spit out the time in a format that matches the culture of the user. It also has pretty great support, though we should probably heed the performance warning on it.

from home.

chetsangnil avatar chetsangnil commented on September 20, 2024

That sounds perfect Nik. Let's do that! Here's an updated screen shot for this issue:

image

from home.

avanderhoorn avatar avanderhoorn commented on September 20, 2024

Ok I've updated things so that any times we show are localized using Date.prototype.toLocaleTimeString() and added the date time overview section and format using Date.prototype.toLocaleDateString().

from home.

Related Issues (20)

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.