Output filename - formatting codes
 
Notifications
Clear all

Output filename - formatting codes  

  RSS
Bytor
(@bytor)
Estimable Member
Output filename - formatting codes

Hi Everyone,

Looking to make a custom output filename format and I have a question that I can't find an answer to. I have already looked at the various Prusa Knowledge Base entries for List of Placeholders, MACROS, etc. The problem is that I'm trying to use the year month and day placeholders. What I have works, but the issue is the month and day place holders do not pad a 0. For example today's date would be displayed as 2026311. What I would like would be displayed as 20260311. Is this possible? I know in programming languages there is usually some type of way to specify formats for dates and numbers. 

Example of what I currently have for the file string and its output:

{year}{month}{day} - {input_filename_base} - 0.4n - {printing_filament_types} - {print_time} - {digits(total_weight),1,2}g

   2026311 - Orchid Inner Pot - 0.4n - PETG - 11h0m - 173.9g

- 1st "printer" TIKO 3D
- 2nd PRUSA i3 MK2S with MMU v1
- 3rd PRUSA i3 MK2S
- 4th PRUSA i3 MK3 with MMU v2- 5th PRUSA i3 MK4 (upgraded from MK3) with MMU v3 (upgraded from…

Posted : 12/03/2026 12:00 am
_KaszpiR_
(@_kaszpir_)
Noble Member
RE: Output filename - formatting codes

https://github.com/prusa3d/PrusaSlicer/issues/4176#issuecomment-954677457

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 12/03/2026 5:40 pm
1 people liked
Bytor
(@bytor)
Estimable Member
Topic starter answered:
RE: Output filename - formatting codes

Thanks.

I saw the zdigits, but didn't think it applied to the date values and therefore didn't try it. Much appreciated

Bytor

- 1st "printer" TIKO 3D
- 2nd PRUSA i3 MK2S with MMU v1
- 3rd PRUSA i3 MK2S
- 4th PRUSA i3 MK3 with MMU v2- 5th PRUSA i3 MK4 (upgraded from MK3) with MMU v3 (upgraded from…

Posted : 12/03/2026 8:14 pm
Share: