DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Convert to dd/MM/yyyy format

  1. #1
    Join Date
    Feb 2007
    Posts
    16

    Exclamation Convert to dd/MM/yyyy format

    hi

    dim LoginDate as string

    pls try to do this.

    system(PC) has any types of date format but
    i want convert to this type of format dd/mm/yyyy
    in string value.

    thanks
    -LiveSys

  2. #2
    Join Date
    Dec 2003
    Posts
    2,750
    LoginDate = Format(now,"dd/mm/yyyy")
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  3. #3
    Join Date
    Feb 2007
    Posts
    16

    thanks but.....some

    and some other

    dim word as string

    word=now

    how to convert it in to dd/mm/yyyy.

    word=format(word,"dd/mm/yyyy") 'are some sys format ans not currectly.

    -livesys

  4. #4
    Join Date
    Aug 2005
    Location
    Hermosillo, Sonora, Mexico
    Posts
    103
    Code:
    Dim MyString as String
    Dim MyDate   as Date
    
    MyDate = Now
    
    MyString = Format(MyDate,"dd/mm/yyyy")

Similar Threads

  1. Replies: 5
    Last Post: 11-12-2008, 01:35 AM
  2. How to convert word format to xml format
    By zappydolphins in forum XML
    Replies: 2
    Last Post: 02-18-2005, 01:36 AM
  3. How to convert seconds to hh:mm:ss format?
    By convert in forum ASP.NET
    Replies: 8
    Last Post: 06-10-2002, 08:28 AM
  4. Replies: 2
    Last Post: 06-29-2001, 11:16 AM
  5. Replies: 1
    Last Post: 09-08-2000, 12:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center