Jump to content
Xtreme .Net Talk

Calender Object


Recommended Posts

Guest daftpunknl
Posted

I`m using the calender so the user can select a date and retrieve records from a database with all records involving that date.

 

When i list all request.form items the calender seems te send a number indicating the date.

 

I figured out:

 

0 = jan-1-2000

1012 = oct-9-2002

-1 = dec-31-1999

 

How can i set up the calender to use real date's instead of those numbers counting the days since 1-1-2000

  • Moderators
Posted

I'm assuming that you're using the MonthCalendar Control....

 Private Sub MonthCalendar1_DateChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateChanged
       MessageBox.Show(e.Start.Month.ToString & "/" & e.Start.Day.ToString & "/" & e.Start.Year.ToString)
End Sub

Visit...Bassic Software
Guest daftpunknl
Posted

asp

 

I`m using it in a asp.net project and it doesnt know windows.form.

 

what should i use instead of the system.windows.form?

Guest daftpunknl
Posted

Never mind... got it:

 

Private Sub Calender_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Calender.SelectionChanged

Response.Write("<BR>" & Calender.SelectedDate & " --> Geselecteerde datum")

End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...