-2

12 June 2020 to something like Sat Feb 01 2020 13:28:38 GMT+0300 (GMT+03:00) and ıt will be 4 languages, de, tr, en, ru. I ve tried date.js to parse but couldnt get it work

WorldOfEmre
  • 87
  • 2
  • 11
  • `new Date("12 June 2020")` – Roberto Zvjerković Jan 31 '20 at 10:50
  • use moment, because browsers dont' necessarily support that format – Jaromanda X Jan 31 '20 at 10:50
  • did you tried something? – Kaushik Jan 31 '20 at 10:50
  • stackoverflow is not just for asking, try searching it as well, you will find a lot of good answers for simple questions like this. – Chit Khine Jan 31 '20 at 10:54
  • ofc I ve been trying for 2 days, ı am running a big serious project, lastly ı couldnt fix this problem as ı said ı tried date.js using moment.js so ı just need to convert "12 June 2020" to Feb 01 2020 13:28:38 GMT+0300 (GMT+03:00) but somehow its not working in my codes, ı would like to share my codes but its too much for asking Kaushik – WorldOfEmre Jan 31 '20 at 11:02
  • For local time in ISO 8601 format: `moment('12 June 2020', 'DD MMMM YYYY').format()`. For UTC time in ISO 8601 format: `moment('12 June 2020', 'DD MMMM YYYY').utc().format()`. – RobG Jan 31 '20 at 20:43

1 Answers1

0

let d = new Date('12 June 2020').toString();
console.log(d);
Umair Khan
  • 1,684
  • 18
  • 34