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
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

date time formatting 3
Need help with access expression - HELP!! 0
Excel Help with dates 2
datetime picker problems 5
Popup Dialog Position 2
Duff Date Text 3
pure time format 1
If Condition 14

Back
Top