i've got a custom timestamp which looks like this: "Jan 15 2020 11:11:50.000 +0000". I need to transfer the timestamp mentioned above in an Epoch-Timestamp. I've tried it serval times - Right now my code looks like this:
oldTimeStamp = 'Jan 15 2020 11:11:50.000 +0000';
newTimeStamp = Date.parse(oldTimeStamp).toString('MMM dd yyyy hh:mm:ss.SSS Z')
console.log(newTimeStamp)
I have to use Datejs to transfrom the date.
Anyone got an idea how to fix it?
Thanks
As far as i understood, this could help you transorming
oldTimeStampinto a timestamp or UTC-stringUsing DateJS you can format the timestamp into any format