Skip to main content
5-Regular Member
August 17, 2026
Question

Put Today's Date into a new part or assembly parameter's

  • August 17, 2026
  • 6 replies
  • 83 views

Hello, 

I have the same request as this thread made a long time ago :

Model Parameter = Today's Date | Community

Anyone out there know how to set a model parameter equal to Today's Date?
Specifically, I'm looking for a way to set the date of a parameter equal to today's date during the creation of a new part or assembly.

There was a proposition to  add the parameter (&todays_date) into your template.

I cannot make a parameter named “&todays_date”

I created a parameter named “DESIGN DATE” with the value “&todays_date” in the part template. When I create a new part with this template, the parameter remains “&todays_date”.

Is it me who does not make this right or is there another way ?

 

6 replies

5-Regular Member
August 17, 2026

Hi, if using Creo Standalone without a PDM system, there are three options to automate inserting today's date:

* Mapkey + System Command (@SYSTEM): You can record a mapkey that runs a CMD/PowerShell script to capture the operating system date, copy it to the clipboard, and paste it automatically into the parameter field upon opening the file.

* Manual parameter in template files (Start Part / Start Assembly): Define the CREATION_DATE parameter (Date or String type) in the template files. The initial value remains blank or generic, and the designer fills it in when creating the component.

* 2D Drawings (.drw): If the date is needed for a drawing border/title block, you can use the system note &todays_date. When added to the drawing, Creo reads the PC's system date and converts it into static text.

www.altamax-engineering.com
KenFarley
21-Topaz II
August 17, 2026

As I understand it, &todays_date is only useful in a drawing template. When it’s in the drawing template it is evaluated once and puts the result into the drawing the template is being used to create. It is not a function or parameter that is available within parts and assemblies.

If I’m wrong about this, anyone feel free to point it out.

The way we get DesignDate (the parameter we use for this in parts and assemblies) is the person creating the part has to input that parameter. Error prone and lacking uniformity (one person might use DD-MM-YY, one use DD/MM/YY, or DD.MM.YY, etc.), but it’s the only way we’ve found to do this. We set it to “-” by default in the part/assembly templates, so it becomes obvious if it hasn’t been set when the drawing creation process is started.

5-Regular Member
August 18, 2026

Hi Flolap, yes, the &todays_date is a parameter that works only in drawings.

www.altamax-engineering.com
FLOLAP5-Regular MemberAuthor
5-Regular Member
August 17, 2026

The way we are doing it is like you both mentioned, having a parameter that the designer manually fills when he creates a new part. Its simple and easy but prone to forgetfulness until you make the drawing. &todays_date is used when the drawing is created, generally a few days/weeks later.

 

@Massimo Mele, I like your mapkey idea, I will give it a try.

kdirth
21-Topaz I
August 17, 2026

What is the end result you are looking for?  When the model was created?

Tools > Investigate > File History has info on every save of the model.

 

There is always more to learn.
KenFarley
21-Topaz II
August 17, 2026

I believe the OP is trying to automate things so when a user starts a new file, the “date” parameter will be automatically set to the current date. To avoid people forgetting to input the parameter.