how we extract date part from datetime value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • veer
    New Member
    • Jul 2007
    • 198

    how we extract date part from datetime value

    Hi
    i want to extract the date part from datetime value i use this coding in load event of form
    DTPPicker1=now
    DTPPicker2=now
    after this i only want the date part from this DTPPicker1 and DTPPicker2
    how is it possible
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Originally posted by veer
    i only want the date part from this DTPPicker1 and DTPPicker2
    how is it possible
    Hi,

    Try this :

    Text1.Text = Format(DtPicker 1.Value,"dd-mm-yyyy")

    REgards
    Veena

    Comment

    • veer
      New Member
      • Jul 2007
      • 198

      #3
      Hi Veena
      thanks it is working

      REgards
      varinder



      Originally posted by QVeen72
      Hi,

      Try this :

      Text1.Text = Format(DtPicker 1.Value,"dd-mm-yyyy")

      REgards
      Veena

      Comment

      Working...