Alteryx Designer Desktop Discussions

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

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" 👍

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels