Created
July 6, 2018 17:30
-
-
Save pradeepwebonise/8276c907bc77888a23eb1b9a9f4a3358 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String callScheduleDate = "07-06-2018"; | |
String callScheduleTime = "04:04"; | |
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd-yyyy HH:mm"); | |
try | |
{ | |
Date date = simpleDateFormat.parse(callScheduleDate+" "+ callScheduleTime); | |
System.out.println("date : "+ date); | |
} | |
catch (ParseException ex) | |
{ | |
System.out.println("Exception "+ex); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment