The Date
Object is always at the rescue. You are receiving the value 1535004239 in seconds. So first you need to convert it to milliseconds.
var currentDate=1535004239*1000
Next, you can pass the value as directly to the Date constructor.
var date=new Date(currentDate)
Thanks to some certain predefined functions of the Date object in ES5, you can now get your formatted Date using the .toLocaleString()
function
var dateString=date.toLocaleString()
console.log(dateString)
The code above should output something like
23/08/2018, 11:33:59
Edit 1: Use the code below to exactly get your formatted output
Once you have the date in the date
variable, to get the exact format you want, use the code below
var currentDate= date.toLocaleDateString()+' '+date.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', second:'numeric', hour12: true })
This should output something like 23/08/2018 11:33:59 AM