CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2001
    Location
    ohio
    Posts
    300

    Date$ format question

    does the Date$ ALWAYS give me the date in the same format or can it change if the computer has the date setup different??

    i would like it to always show me the date in this format:


    MM/DD/YYYY

  2. #2
    Join Date
    Apr 2004
    Posts
    14
    Date$ behavior is unchanged by the Calendar property setting (regional option). Date function does. but Date$ return a 10-character string of the form mm-dd-yyyy.

    to format the Date to mm/dd/yyyy, use format function
    Last edited by hendramin; May 4th, 2004 at 10:52 PM.

  3. #3
    Join Date
    Apr 2002
    Location
    Egypt
    Posts
    2,210
    also use FormatDateTime function to make a shrotdate,longdate,shorttime,longtime,general format of Date.
    Hesham A. Amin
    My blog , Articles


    <a rel=https://twitter.com/HeshamAmin" border="0" /> @HeshamAmin

  4. #4
    Join Date
    Apr 2001
    Location
    ohio
    Posts
    300

    Format Date$

    ok. thanks.

    i thought the Date$ may be unchanged by the regonal settings but i was not sure.


    thanks again!.


    Ron

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