I am trying to create a folder based off of the current month/day using DateTime. After i initialize a new DateTime( 2011, 5, 16, 1, 1, 30); will this keep itself updated or reset every time the program is ran?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A DateTime(2011, 5, 16, 1, 1, 30); is an object which gets initialized with the date you provide as a constructor. The date will always stay the same. If you want to get the current date then you need to use
DateTime.Now.