DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: convert date to string format dd-mm-yyyy

Hybrid View

  1. #1
    david Guest

    convert date to string format dd-mm-yyyy


    Hi

    I'd like to convert todays' date to a string - but the format of the string
    should be dd-mm-yyyy - and not dependent on my system settings - Is there
    an easy way to do it ???

    David

  2. #2
    Phil Weber Guest

    Re: convert date to string format dd-mm-yyyy

    > I'd like to convert today's date to a string - but the format
    > of the string should be dd-mm-yyyy - and not dependent on
    > my system settings - Is there an easy way to do it ???


    David: Look up the Format function in VB's online help.
    ---
    Phil Weber



  3. #3
    Arthur Wood Guest

    Re: convert date to string format dd-mm-yyyy


    And specifically, the way to do it is :

    MyDateString = Format$(MyDateField, <date format string>) ===>

    MyDateString = Format$(MyDateField,"DD-MM-YYYY")


    it is that easy. You can use ALMOST any date formatting that you may need,
    totally independent of whatever you may have set for you regional settings
    in the control-panel.

    Arthur Wood

    "Phil Weber" <pweberonline@fawcette.com> wrote:
    > > I'd like to convert today's date to a string - but the format
    > > of the string should be dd-mm-yyyy - and not dependent on
    > > my system settings - Is there an easy way to do it ???

    >
    >David: Look up the Format function in VB's online help.
    >---
    >Phil Weber
    >
    >



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