How to format a date String into desirable Date format

前端 未结 5 1074
南旧
南旧 2021-01-22 17:11

I was trying to format a string into date.

For this I have written a code:-

Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateF         


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-22 17:57

    Date Format Example

    Containing the Conversion of String Date object from one format to another

提交回复
热议问题