Switch DD and MM in email
This commit is contained in:
parent
20741b50e2
commit
7c7c6cde41
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user