Results 1 to 2 of 2

Thread: Dates

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Unhappy Dates

    How do i disable from seeing the time when i use this:

    Dim CurrentDate As Date
    .
    .
    .CurrentDate = Now
    txtDate.Text = CurrentDate




    cuz I ONLY WANT THE DATE NOT THE TIME....
    CurrentDate= Date .........is not an option...

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    VB Code:
    1. Dim CurrentDate As Date
    2. CurrentDate = Now
    3. txtDate.Text = CurrentDate.ToLongDateString
    4. ' or txtDate.Text = CurrentDate.ToShortDateString
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

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