Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Save Excel with Date and Time

Hursan
5 - Atom

I have this workflow that I want the output to include the date and time.

If I use:

"....\Database\AutoReports\Data_For_Shipping_Manifest\All_Data\Reports_Data_For"+"_"+ DateTimetoday()+".xlsx"+"|||Sheet1"

the file is successfuly created with the date only

 

but if i use

"\...\Database\AutoReports\Data_For_Shipping_Manifest\All_Data\Reports_Data_For"+"_"+ DateTimeFormat(DateTimeNow(),"%d%m%Y %H:%M:%S") +".xlsx"+"|||Sheet1"

I get an error.

 

Same if use:

"\...\Database\AutoReports\Data_For_Shipping_Manifest\All_Data\Reports_Data_For"+"_"+ DateTimeNow() +".xlsx"+"|||Sheet1"

 

What am I doing wrong?

Any help is greatly appreciated.

1 REPLY 1
Matt_D
10 - Fireball

Hi @Hursan  if you're on Windows, try and save a file with ":" in the filename.

 

 

Screenshot 2024-10-02 133505.png

 

You'll need to use "%d%m%Y %H%M%S" 👍

Labels
Top Solution Authors