TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
dc
NA
663
0
C# previous month access
Jan 14 2013 11:01 AM
In a C# 2008 desktop application, I want to be able to access a directory path location where the month and year is part of the filename.
The statement I have for this right now is the following:
String Format_Date = today.ToString("MM-yyyy");
I would like to change the code above to month to the previous month? Also if the previous month is December and the year is one year less,
how would you make the coding change?
In other words, right now it is Jan. 2013 and I want to access the previous month which is Dec. 2012?
Can you show me code on how to accomplish this goal?
Reply
Answers (
1
)
C# widow app
Help Method Returning Link Data