cancel
Showing results for 
Search instead for 
Did you mean: 

File writer snap smb

heidi_andrew
Contributor

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”})”

2 REPLIES 2

AleksandarAngel
Contributor III

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.

Thank you! I have to use this a lot!