[JAVA-10432] Rename and enable testng-command-line module
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package com.baeldung.testng;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
public class DateSerializerService {
|
||||
public String serializeDate(Date date, String format) {
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(format);
|
||||
return dateFormat.format(date);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user