I looking for a way to remove the time stamp of a date field when using personalization strings.
I got this format when using PS: 3/1/2020 12:00:00 AM. I want to remove that part "12:00:00 AM".
Here is my personalization strings for the date field: %%=lookup('CONTRATS_HABITATION','DATE_EFFET_CONTRAT','CONTACT_ACCOUNT_ID',CONTACT_ACCOUNT_ID)=%%
I have read in another post that I could use that function FormatDate(Now(), "MMM dd, yyyy")
by replacing the Now() by my date field. But I don't know how to proceed.
Does anyone have some insights about this?
Thanks!
UPDATE I just wanted to add a solution to my last comment. Since the field is contained in a non-sendable data extension, I had to find a way to retrieve it and to truncate the date field. Here is my solution: %%=v(FormatDate(lookup('CONTRATS_HABITATION','DATE_EFFET_CONTRAT','CONTACT_ACCOUNT_ID',CONTACT_ACCOUNT_ID), "dd MMMM yyyy",,"fr-CA"))=%%