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
vinutha N
NA
1
1.8k
How find the Overlapping dates & time using linq
Apr 13 2015 3:32 AM
Hi,
I need to find the Overlapping dates and time using linq
example:
Scenario 1
i will define the date 1/4/2015 and 9/4/2015 and time span of 05:12 to 10:56
and i will define one more date range like 1/4/2015 to 2/4/2015 and time span of 11:45 to 15:67
and this should get added to DB as it is not lies in the 1st defined date.
if i add 1/4/2015 and 5/4/2015 and time span of 09:12 to 10:00 this should not allow to save in db.
Scenario 2:
And in the Ui page i need to fetch these content which in between the date and time span with respect to server time.
Consider Current time is 12:00 now it has to pic 1/4/2015 to 2/4/2015 and time span of 11:45 to 15:67 date range record.
can any one help me out how to write the logic in linq.
Thanks,
Vini
Reply
Answers (
0
)
Linq Mapping
i want to convert sql query to linq to sql