Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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