I have a table with ‘dateborrowed’ and ‘datereturned’ column. What I want to do is I want to get the value in between ‘datereturned’ and ‘dateborrowed’ and bind it to another column in another table. Also how can I do it using datediff function? I’m still learning it in the meantime. Any help would be greatly appreciated.
Thanks in advance!!
With C#.NET you can subtract one
DateTimefrom another, resulting in aTimeSpan. For example:If you want a date in between two dates, you can then add half of this timespan to one of the dates: