Custom datepicker format in triggered email

Hello! I have a form which triggers a detailed email of all of the form values to myself and also the person who submitted it. Currently, the corresponding email shows the value of the datepicker element like this:


My current code for this line is \rPreferred Date: ${$w( “#datePicker1” ).value}. Is there a way to reformat the displayed date to Jun 04 2020 directly from the form submission into the triggered email? I want to simplify it and eliminate the day, time, time zone, etc.

Thanks in advance!
Amanda

See the article on Date formatting in Corvid . Plus, an Internet search will turn up lots of other options.

Hi Yisrael! Thank you for your reply. After doing some digging, I found the code I needed on this thread - https://www.wix.com/corvid/forum/community-discussion/creating-an-if-else-statement-based-on-a-datepicker-value/p-1/dl-5ba0a8cd2137820014b42fc1

@amanda_lofink
I have same question.
You wrote you found the code from the thread.
I saw the page, but I can’t understand.

The datepicker connect to database, so the save format is always day & time.
So if send trigger e-mail, the display always like this

Wed Sep 22 2021 00:00:00 GMT+0900

If you have the code, please tell me.

Hi there …

This is an old thread and will be closed, if you still have more questions or concerns feel free to open up new a thread.

Bumping up old threads is against the community guidelines.