troubleshooting Question

C# method that returns date

Avatar of wademi
wademi asked on
C#
3 Comments1 Solution378 ViewsLast Modified:
I need help creating a method in C# that returns the "start date of last month" and the "Current date" .  I am not sure of the best way to return the dates .

I would like to be able to use the return value in another method and refer to the dates like:

Returnval.MonthStartdate
Returnval.Currentdate

Maybe the method should return the dates as an Enum

The dates should be in the format like 11/15/2011 and be a string.
ASKER CERTIFIED SOLUTION
Mike Tomlinson
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros