In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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