Due to the language barrier I am unable to find an answer to a problem I'm having. Using 2 arrays in JavaScript I need to translate a date.
var months =['january','february','march','april','may','june','july','august','september','october'.'november','december'];
var weekday = ['sunday','monday','tuesday','wednesday','thursday','friday','saturday'];
Using this I am supposed to turn for example:
Mon Oct 28 2018 14:41:20 GMT+0100
into
Monday 28 October 2018
My apologies for this likely being a repost of a question that has been answered previously, but as I previously mentioned I was unable to find it.