Dear All,
I had written the below code to convert the data Long date to Short date .
Actually I am having the value "Mon Apr 30 10:30:00 UTC+0530 2018" in a var variable .And I am using the method toLocaleDateString() to get the format of DD:MM:YYY( 4/30/2018 ) .
But the problem is when I use the same method toLocaleDateString() I am getting the result as Monday, April 30, 2018 .
Can any one please help me how can I solve it