how to split date and time in angularjs