When my server back end sends the time value as milliseconds (1479515722195
), I use a library function to convert it to a date format like Sat Nov 19 2016 11:35:22
. Now, I need to figure out how to separate the date and time components. I only require the date for further processing. How can I achieve this?
Current value in ms : 1479515722195
Current value after conversion : Sat Nov 19 2016 11:35:22
Expected value removing time : Sat Nov 19 2016