DateTimePicker

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Using DateTime Picker, my custom format is "MMMM-yyyy".

if month = january i need 31
if month = Feb' i need 28 or 29
like that for all i need the end date,

how i will do in vb.net

Regards
Rat
 
Hi Rat,

I did not completly understand you,

Is this what you mean?
\\\
Dim md As Date
md = Me.DateTimePicker1.Value
Me.Label1.Text = _
md.DaysInMonth(md.Year, md.Month).ToString
///
 
Back
Top