Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Add timestamp using variable

Date stamp was easy to create using a custom format variable, but I cannot see how to do the same for a time stamp.  I would need a time stamp format without colons or slashes that would be rejected as a filename.  

Can a custom format Time variable be created?  Or has anyone created a job which adds timestamps to files?   I can script it of course, but looking for a clean all purpose time stamp process.

thanks        

1 ACCEPTED SOLUTION

Accepted Solutions
Community Member

Add timestamp using variable

For a file stamp the tidal system date is easy solution (you can use any date type variable)

Tidal Variables

Use system time (typically you add via variable button)

Take and remove :

and you will just get the numbers

use that as a tag to job

if you use Powershell you could use the get-date function as well depending ans format it depending on what you want to do.i

Marc

3 REPLIES
Community Member

Add timestamp using variable

For a file stamp the tidal system date is easy solution (you can use any date type variable)

Tidal Variables

Use system time (typically you add via variable button)

Take and remove :

and you will just get the numbers

use that as a tag to job

if you use Powershell you could use the get-date function as well depending ans format it depending on what you want to do.i

Marc

Community Member

Add timestamp using variable

Thanks Marc.   I did not realize I could actually edit the variable format once it was added to the job.  Too easy!

Community Member

Thanks Marc!!! I owe you a

Thanks Marc!!! I owe you a beer

379
Views
5
Helpful
3
Replies
CreatePlease to create content