473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Q: DatePicker

Hi

Can anybody help me with setting the allowable Max and Min date for a
DatePicker?

I would like to restrict the possible date selections to a given month. So
for example, if I were to specify Jan 06 the datepicker could not display
days Feb 06 i.e. the arrows for next month and earlier month would not do
anything.

I understand that I could use DatePicker MinDate and MaxDate but how do I
set these without explicitly setting, for example, 01/01/06 - 31/01/06.

Thanks in advance

Geoff
Mar 31 '06 #1
2 2018

G .Net wrote:
Hi

Can anybody help me with setting the allowable Max and Min date for a
DatePicker?

I would like to restrict the possible date selections to a given month. So
for example, if I were to specify Jan 06 the datepicker could not display
days Feb 06 i.e. the arrows for next month and earlier month would not do
anything.

I understand that I could use DatePicker MinDate and MaxDate but how do I
set these without explicitly setting, for example, 01/01/06 - 31/01/06.


' to restrict a DatePicker named dtp to the month of:
Dim month As Integer = 1
Dim year As Integer = 2006

dtp.MinDate = New Date(year, month, 1)
dtp.MaxDate = dtp.MinDate.AddMonths(1).AddDays(-1)

--
Larry Lard
Replies to group please

Mar 31 '06 #2
Hi Larry

Many thanks for that.

Geoff

"Larry Lard" <la*******@hotmail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...

G .Net wrote:
Hi

Can anybody help me with setting the allowable Max and Min date for a
DatePicker?

I would like to restrict the possible date selections to a given month.
So
for example, if I were to specify Jan 06 the datepicker could not display
days Feb 06 i.e. the arrows for next month and earlier month would not do
anything.

I understand that I could use DatePicker MinDate and MaxDate but how do I
set these without explicitly setting, for example, 01/01/06 - 31/01/06.


' to restrict a DatePicker named dtp to the month of:
Dim month As Integer = 1
Dim year As Integer = 2006

dtp.MinDate = New Date(year, month, 1)
dtp.MaxDate = dtp.MinDate.AddMonths(1).AddDays(-1)

--
Larry Lard
Replies to group please

Apr 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Always Learning | last post by:
Hi Guys, I have a form field of type datepicker. I want to include it in my get string. like this: Response.Redirect("writetodb.asp?Name=" + Textbox1.Text + "&Telephone=" + TextBox2.Text +...
27
by: Simon Templar | last post by:
Hi, I am trying to introduce a multiple datepicker into a webpage and the problem arises with the second picker. I tried to copy and adapt the code I employed for the first one, renaming the...
0
by: Deano | last post by:
Hi, May have asked this before but haven't got anywhere with this. I have a datepicker constructed from a form i.e it's not an ActiveX control. On my date controls I have this line in the...
7
by: Malcolm Webb | last post by:
I use the Microsoft Access Calendar (ActiveX) to pass dates into queries and reports. I have recently come across the Microsoft Access DatePicker developed by Brendan Kidwell and I now use this...
2
by: flipdoubt | last post by:
What do most people use for a DatePicker and is a DatePicker included in ASP.NET 2.0? I've seen some of the commercial products out there, but the redistributable license for most of them is too...
0
by: Armand | last post by:
Hi All, is anyone of you have any good resource about implementing datepicker that is binded into asp:textbox control? I do have a client side datepicker in JS, but it is binded to html input...
2
by: Vbbeginner07 | last post by:
How to display current date in a datepicker where once we have loaded the datepicker onto form it shows current date,but after some days it shows only the date when it was loaded onto the form,please...
2
by: stainless | last post by:
I have a date selection field that can be blank OR set to a valid future date. I am thinking of using a datepicker field but have one issue with this. If I have a check box in the datepicker...
6
by: ichibon | last post by:
Hi, I have trouble setting the position of the DatePicker, a control from WPF Toolket June 2009 release. When click on the DatePicker control, the Calendar always open as a drop down and expands...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.