• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 791
  • Last Modified:

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
0
omegalove
Asked:
omegalove
1 Solution
 
Miguel OzSoftware EngineerCommented:
DateTime.Now.AddDays(-30);


check:
http://dotnetperls.com/datetime-1
0
 
AndyAinscowCommented:
x is 30, but I suspect you mean something else.  What?
0
 
omegaloveAuthor Commented:
awesome.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now