I have two datetime objects which consists of houts:minutes,like 9:30;I need the difference between the two times and do some thing with difference like generating slots.I am getting difference using Timespan,but after i got the difference I am not getting slots when First time is of PM and second as AM.and both are AM or PM having first datetime's time is greater.
Tell the solution so that I can generate slots whichever tine i give.
If they r like,
9:30AM to 11:30AM
slots r like 9:30AM - 10:30AM
10:30AM - 11:00AM
11:00AM - 11:30AM
if 9:30PM to 11:30AM
9:30AM - 10:00AM
10:00AM - 10:30AM
----
---
----
9:30PM - 10:30PM
10:30AM - 11:00AM
11:00AM - 11:30AM
ok
thankx