Results 1 to 2 of 2

Thread: AutoFormat Date RESOLVED

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2005
    Posts
    300

    Resolved AutoFormat Date RESOLVED

    Ok when my program loads i want txtdate to automatically display the current date in this format

    DD/MM/YYYY

    simple i know but having difficulties.
    Last edited by Ricky1; Jul 9th, 2006 at 07:50 AM.
    Im Learning !!!!

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: AutoFormat Date

    VB Code:
    1. txtDate.Text = Format$(Now, "DD\/MM\/YYYY")

    \ characters prevent the default date formatting from happening, without them the separating characters would appear using the computer's locale settings.

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