UIPATH APPS Format time stamp

Hi community,

I am trying to create a variable for a queue item reference.
I want it to be: FilaName+"“+MM-dd-yyyy+”"HH:mm:ss

or similar. What I need is to be a single string since it has to be used to name a storage bucket item as well.

image

Right now the output I’m getting is this one: BulkRequestFileTestDoc.xlsx_Wed Apr 24 2024 12:02:43 GMT-0600 (Central Standard Time)

Thank you

Hi @denisse.olsen - can you provide exact string which you wanted as output.

@denisse.olsen

Did you try Now.ToString("MM-dd-yyyy HHmmss")

Cheers

FileName_04/24/202412:02:43

Hey @denisse.olsen

You can’t get / in the file name as it represents Sub - folder separator.

As suggested by Anil_G:

Now.ToString("MM_dd_yyyy_HH_mm_ss")

Try above mentioned code atlast in your query in the place of Now.

Regards,
Ajay Mishra

Hey @denisse.olsen ,

Try this

“FileName_”+DateTime.Now.Tostring(“MM/dd/yyyy hh:mm:ss”)

This should work in the same assign.

Thanks,
Gautham.

It’s not working.

I’m working on UiPath apps.

image

Hi @denisse.olsen ,

Check this tutorial from our forum it might help you.

Thanks,
Gautham.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.