import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
public class Main {
public static void main(String args[]) {
//getting the current time for joining date
Calendar cal = Calendar.getInstance();
//milli sec
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Singapore"));
String joiningDate = sdf.format(cal.getTime());
System.out.println("Joining Date: "+joiningDate);
}
}