Results 1 to 2 of 2

Thread: convert string to date

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 1999
    Location
    panama
    Posts
    57

    Post

    need convert string to date for validate in a database not running correctly, need code for this!.


    thank

    ------------------
    capv

  2. #2
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    Code:
    Private Sub Command1_Click()
        On Error Resume Next
        Text1.Text = FormatDateTime(Text1.Text, vbLongDate)
    End Sub
    Click on Command1 and Text1 will have a formatted date in it.

    ------------------
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470 Add Me ICQ Me
    AIM: TomY10
    PERL, JavaScript and VB Programmer

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