Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pradeepwebonise/8276c907bc77888a23eb1b9a9f4a3358 to your computer and use it in GitHub Desktop.
Save pradeepwebonise/8276c907bc77888a23eb1b9a9f4a3358 to your computer and use it in GitHub Desktop.
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