02-24-2023 06:44 AM
I want to wrtite a file out with the date formatted for NY time MM/DD/YYYY using the smb. Here is one that i have tried but i dont know the syntax for it. Equal decorator must be selected to send it to this spot. I have tried with ’ or " around them and it is not happy.
“smb://xxxx.com/us_data/Shared/MM365/Clients/CURRENT_SL/CHANGES+DATE.NOW().toLocaleDateTimeString({“timeZone”:“America/New_York”})”
02-24-2023 06:48 AM
Hello @heidi.andrew,
Try with the the following expression:
"smb://xxxx.com/us_data/Shared/MM365/Clients/CURRENT_SL/CHANGES" + Date.now().toLocaleDateString({'timeZone':'America/New_York','format':'MM/dd/YYYY'})
Useful references:
SnapLogic Date Functions
Date Time Format
Let me know if this helps.
BR,
Aleksandar.
02-28-2023 04:42 AM
Thank you! I have to use this a lot!