How to convert String to Time in java without date, I only need time specifically
String Start_time="04:30";
I used
DateFormat time=new SimpleDateFormat("hh:mm");
Time bid_start_time=new Time(time.parse("Start_time").getTime());
I need the value “04:30” in Date.I format; I do not need additional date parameters such as DD / MM / YY
source
share