Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

unix to date in javascript

const unixToDate = (string) => {
  const unixTime = string;
  const date = new Date(unixTime * 1000);
  const newText = date.toLocaleDateString("en-US");
  
  return newText
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #unix #date #javascript
ADD COMMENT
Topic
Name
1+8 =