CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Dates

  1. #1
    Join Date
    Jun 1999
    Location
    Texas
    Posts
    119

    Dates

    I have a text box that I have specified the "DateFormat" in as yyyy-mm-dd. When I retrieve the date from my system it still shows up in the text box as mm/dd/yy (which I think is the default). Does anyone know of a way to convert to an ISO (yyyy-mm-dd) date?

    Dim Today as Variant
    Today = date
    txtDateFrom.Text = Today
    txtdateTo.Text = Today



    Thanks


  2. #2
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: Dates

    Try changign the default Date in THe Control Panel.It should work as long as the Program is on ur System .But when you distribute it then that is another case



  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Dates

    you can use the format function
    Try

    debug.print Format(date(),"yyyy-mm-dd")




    RK

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

Featured