Create a file with current date




















Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Related Hot Network Questions. Stack Overflow works best with JavaScript enabled. However now for the difficult part I want to create a new file name. Hopefully someone could help me out. Labels: Labels: OneDrive filename. Everyone's tags 1 : OneDrive filename renam…. Message 1 of 4. Further, how many attachment files does the incoming email have?

Message 2 of 4. In response to v-xida-msft. Dear Kris, Thanks for the explanation, it works like a charm! Have a nice day. Message 3 of 4. Everyone's tags 4 : Azure File. Add a comment. Active Oldest Votes. Use this for a format with no slashes DateTime. ToString "yyyy-dd-M--HH-mm-ss" ; ToShortDateString uses the current language which will result in different results depending on the machine where the code executes. Mathias F Mathias F That's why you are getting the error saying The given path's format is not supported.

Replace ':', '-' ;. RajeshKdev RajeshKdev 6, 6 6 gold badges 55 55 silver badges 77 77 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Ask Question. Asked 9 years, 8 months ago. Active 2 months ago. Viewed k times. Here is a functional code create file with success sys. The error returned: File ". Martin Prikryl k 47 47 gold badges silver badges bronze badges.

Add a comment. Active Oldest Votes. Levon Levon k 32 32 gold badges silver badges bronze badges. Thank You so much! I don't know why you accepted this answer when there are two answers that explain perfectly well what was wrong with the code in the question. Nothing against the way Levon did this, it works fine, but when you say "not work, I don't know why", it seems odd because you have answers that explain why.

When I tried the code above, I received a, "E AttributeError: 'int' object has no attribute 'strftime'" error. Did you copy this text from above?



0コメント

  • 1000 / 1000