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