如何在不带日期的java中将字符串转换为时间,我特别需要单独的时间
String Start_time="04:30";
Run Code Online (Sandbox Code Playgroud)
我用了
DateFormat time=new SimpleDateFormat("hh:mm");
Time bid_start_time=new Time(time.parse("Start_time").getTime());
Run Code Online (Sandbox Code Playgroud)
我确实需要Date格式的值“ 04:30”。不需要多余的Date参数,例如DD / MM / YY