I am storing time in a MySQL database as a Unix timestamp and that gets sent to some JavaScript code. How would I get just the time out of it?
For example, in HH/MM/
(new Date(ts*1000)+'').slice(16,24)
let ts = 1549312452; let time = (new Date(ts*1000)+'').slice(16,24); console.log(time);