Solved

DateTime.Now- x = 30 days ago

Posted on 2010-11-21
3
769 Views
Last Modified: 2012-05-10
ViewProfilesCollection Viewprofiles = OmegaLoveHelper.GetViewProfiles(UserId, DateTime.Now);

need to pass the date time DateTime.Now- x = 30 days ago
0
Comment
Question by:omegalove
3 Comments
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 34184285
DateTime.Now.AddDays(-30);


check:
http://dotnetperls.com/datetime-1
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 34184294
x is 30, but I suspect you mean something else.  What?
0
 

Author Closing Comment

by:omegalove
ID: 34184459
awesome.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How come this regular expression allows "e"? 14 45
Iteration Help (Asp.net VB) 5 24
edit .asp files 5 29
How can I run RAW complex query's with Entity Framework Core 1 37
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question