MCPcopy Create free account
hub / github.com/LisenCoding/cangku / DateUtil

Class DateUtil

boot/src/main/java/com/utils/DateUtil.java:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import java.util.Date;
6
7public class DateUtil {
8
9
10 public static String convertString(Date date,String format){
11 if(date == null){
12 return null;
13 }
14 SimpleDateFormat sdf = new SimpleDateFormat(format);
15 return sdf.format(date);
16 }
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected