HOW TO
Adding a current date to the output layer name enables users to generate daily layers and keep track of updated data. In ModelBuilder, the output layer name generated automatically contains the current date.
The instructions provided describe how to export layers with a current date in the output layer name using ModelBuilder in ArcMap and ArcGIS Pro:
In ArcMap

time.strftime("<LayerName>%Y%m%d")

Note: Ensure the output parameter name is exactly the same as the Calculate Value tool output name. In this example, the output name of the Calculate Value tool is output_value. Therefore, the output parameter name in the Output Feature Class section must be %output_value%.

and link the output from Calculate Value to the selected geoprocessing tool, and select Precondition.


In ArcGIS Pro

time.strftime("<LayerName>%Y%m%d")
Note: Ensure the output parameter name is exactly the same as the Calculate Value tool output name. In this example, the output name of the Calculate Value tool is output_value. Therefore, the output parameter name in the Output Feature Class section must be %output_value%.




Article ID: 000018085
Get help from ArcGIS experts
Start chatting now