TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Smith
NA
2k
0
Datetime rnage verification
Mar 26 2012 6:22 PM
After try parsing the datetime out below, i want towrite logic that restrict the user to 45 days from current date or should I say if the datetime is in detween 45 days from the current date then do something else continue, so today is 03/26, 45 days from the 03/26 would be 02/09/12 or 02/08/12. so if datetime is between that range ( 03/26 would be 02/09/12) then i process data or else continue.
if (DateTime.TryParseExact(dateTimeConstruct, "yyyyMMdd HHmmss", null, 0, out dateTime))
{
if (dateTime.Day > 45)
{
}
}
Reply
Answers (
2
)
How to use Hidden Control?
Stored Procedure