Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2003, 06:30 PM
Authorized User
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Default VS.Net Calendar

Does anyone know how to retrieve all dates from a selectionrange :

I would like to select from 11/1/2003 to 11/7/2003 now I can put the Stop and End dates in text boxes. But I would like to place the dates 11/2, 11/3, 11/4 , 11/5, 11/6 into a Database. This will help me with certain Queries I have to create.


txtStart.Text = MonthCalendar1.SelectionRange.Start.ToShortDateStr ing
txtEnd.Text = MonthCalendar1.SelectionRange.End.ToShortDateStrin g

Please Help
 
Old December 5th, 2003, 05:27 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use loop to do it and use dateadd and datediff two function to help you








Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar like calendar in AJAX in ASP.NET h@ckerz ASP.NET 2.0 Professional 0 February 19th, 2008 12:56 AM
Calendar Control in .NET akshay144 .NET Framework 1.x 1 December 18th, 2006 01:58 AM
VB.NET Calendar cyndie VB.NET 1 January 21st, 2005 07:05 AM
ADO.net Calendar KennethMungwira ADO.NET 9 November 18th, 2003 07:18 AM
VB.net Calendar KennethMungwira VB.NET 2 November 13th, 2003 11:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.