Patient Medical Records

Sort by

recency

|

24 Discussions

|

  • + 0 comments

    I passed all test cases but my submission is still scored at 0? why?

  • + 1 comment

    To pass test cases and missing information in problem:

    SL = index+1;

    To convert timeStamp and to pass 3rd, 4th test case:

    const formatDate = (timestamp) => new Intl.DateTimeFormat('en-GB').format(new Date(timestamp));

    This will format timestamp to dd/mm/yyyy required to pass the test cases

  • + 0 comments

    is allow to use moment? I was able to add it to the dependencies, but after that i can not import it. I assume the npm install is missing but i have no idea how to do it...

  • + 0 comments

    First check the App.test.js file it is not that hard to read and understand. Then you will know why your code is not passing the tests. The most annoying part is the timestamp formatting. It must be in this format to work :

    (timeStamp) => (new Date(timeStamp)).toLocaleDateString('en-US', { 
        month: '2-digit', 
        day: '2-digit', 
        year: 'numeric' 
      });
    
  • + 3 comments

    What does "SL" stand for?