convert date format using javascript in java how to convert current time to epoch time