Results 1 to 2 of 2

Thread: DTPicker help

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    15

    DTPicker help

    Hi all

    Im using DTPicker to get date imput from the user

    my program uses the following to do calcualations

    tempYear = DTPicker1.Year
    tempMonth = DTPicker1.Month
    tempDay = DTPicker1.Day

    what I want to know is how to change the month to a text

    eg

    tempMonth = 1

    and changes to txtMonth = "January"

    i know there is a long way of doing it is there an easyer way to do it.


    Thanks Ed

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: DTPicker help

    VB Code:
    1. Text1.Text = MonthName(CLng(tempMonth))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width