I have date string in this format:
2009-07-15 00:00:00 - 2009-07-15 08:16:23
Could anyone help me to tweak the date string to unix timesta
using split method you can change the datetime formate in to date, its very simple and easy to everyone.
var str = "2017-05-09T00:00:00.000Z"; var res = str.split("-",2); var res = str.split("T",1); var temp=res;