evrenvarol / outlook-taskboard

Kanban Board for Microsoft Outlook Tasks
MIT License
205 stars 76 forks source link

How to add current date to email subject #53

Open Snipox00000001 opened 5 years ago

Snipox00000001 commented 5 years ago

In app.js, line 195, there is "mailItem.Subject = "Status Report"

How can I add the current date so that the email subject would read "12/10/2018 Status Report"

NicholasM-PSE commented 5 years ago

this might work:

var today = new Date().toLocaleDateString();
mailitem.Subject = today + " Status Report";

"10/12/2018 Status Report"