[JAVA-10432] Rename and enable testng-command-line module

This commit is contained in:
Haroon Khan
2022-03-04 21:17:23 +00:00
parent 7c3cbf0d4f
commit ef88a1803f
6 changed files with 8 additions and 6 deletions
@@ -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);
}
}