diff --git a/disaggregation_lookahead.py b/disaggregation_lookahead.py
index e703b01785fffa8102a24182029ae9b33bb09f2b..f2f1d7a8e672ed98e21d4a5b7ed301e27ef561e4 100644
--- a/disaggregation_lookahead.py
+++ b/disaggregation_lookahead.py
@@ -504,7 +504,8 @@ def main(argv):
     end = time.time()
     print('Runtime: ',end - start )
     d = datetime.now()
-    folderName = f'result_{d.year}{d.month}{d.day}{d.hour}{d.minute}{d.second}'
+    d_formatted = d.strftime('%Y%m%d%H%M%S') # Ensure that single digit days and months are padded with a leading `0` 
+    folderName = f'result_{d_formatted}'
     filepathHtml = f'{folderName}.html'
 
     # create folder for files