Solved

DateTime.Now- x = 30 days ago

Posted on 2010-11-21
3
765 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
Comment Utility
DateTime.Now.AddDays(-30);


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

Expert Comment

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

Author Closing Comment

by:omegalove
Comment Utility
awesome.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now