Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting all dates between a date range
Message
From
06/03/2006 10:00:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/03/2006 09:23:11
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01101704
Message ID:
01101716
Views:
15
>Is there some sort of built in function that will return all days between a date range, or do I need to build a loop that adds a day until I reach the end date?
>
>Thanks,
>MAC

You mean this?
TimeSpan ts = dt2-dt1;
int days = ts.Days;
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform