Switch DD and MM in email

This commit is contained in:
James Quinley 2022-02-08 01:32:27 -08:00
parent 20741b50e2
commit 7c7c6cde41

View File

@ -20,7 +20,7 @@ public class emailVerify {
public static void SendEmailThroughGmail(String receiverEmail) { public static void SendEmailThroughGmail(String receiverEmail) {
Date date = new Date(); Date date = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yy"); SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yy");
String Date = formatter.format(date); String Date = formatter.format(date);
Properties props = new Properties(); Properties props = new Properties();
props.put("mail.smtp.host", emailSMTPserver); props.put("mail.smtp.host", emailSMTPserver);