Results 1 to 2 of 2

Thread: retrieve data from date timepicker

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2003
    Posts
    175

    Unhappy retrieve data from date timepicker

    hello all
    i try to get data from date timepicker command by the folowing format
    "dd'/'mm'/'yy"
    and it retrives me the correct format but with the additional hour and i dont need the hours jus "dd/mm/yy"
    how can i do that.
    i use
    dtpSupAdd.CustomFormat = "dd'/'mm'/'yy"
    Dim a As String
    a = dtpSupAdd.Value()
    MsgBox(a)
    i get the propriate format with additional hour and i need just date how can i do that?

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Try this dtpSupAdd.Value().ToShortDatetime()
    Dont gain the world and lose your soul

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