DateTime.Now- x = 30 days ago

ViewProfilesCollection Viewprofiles = OmegaLoveHelper.GetViewProfiles(UserId, DateTime.Now);

need to pass the date time DateTime.Now- x = 30 days ago
omegaloveAsked:
Who is Participating?
 
Miguel OzConnect With a Mentor Software EngineerCommented:
DateTime.Now.AddDays(-30);


check:
http://dotnetperls.com/datetime-1
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
x is 30, but I suspect you mean something else.  What?
0
 
omegaloveAuthor Commented:
awesome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.