You are viewing a single comment's thread. Return to all comments →
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
Seems like cookies are disabled on this browser, please enable them to open this website
Patient Medical Records
You are viewing a single comment's thread. Return to all comments →
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