Currently, I am working on converting a UNIX timestamp to a date object and have successfully managed to split the returned date using the split()
method. This is my current code:
var randomDate = new Date(1571990933 * 1000).toString().split('T');
console.log(randomDate[0]);
The output I am currently getting is: Wed Oct 30 2019 14:30:30 GM
However, what I actually want as output is: 30. October 2019
Can anyone provide some guidance on how I can achieve this desired output?