I'm trying to add an inline variable to my feature class to add the date. I know that adding %t% will add in the date and time, but I only want to add the date. Specifically, I would like this model to pump out the feature class with the current date (the date the tool is run on) in the format YYYYMMDD. Is there a quick solution besides me just having it as a parameter?
I hope this helps.
time.strftime("%y%m%d")
For some reason, I can't find the Calculate Value tool. Also, I need the year in YYYY (2022)
You can find it under the Utilities menu in the ModelBuilder tab. Try using a capital Y instead of the lower case one I sent earlier.
time.strftime("%Y%m%d")
Can I bring this thread back to life? This is how I went about solving the same issue, but my model throws an error code of "Invalid Characters" whenever I try to name an export with the inline variable that I created...
This is my code block for that Calculate Value field ...