text to date type


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: text to date type

  1. #1
    Join Date
    Mar 2004
    Location
    malaysia
    Posts
    150

    text to date type

    Dates can be entered in different formats. For example, dd/MM/yyyy, MM/dd/yyyy,
    yyyy-MM-dd. How can i convert a text in any of the format to a Date type?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    CDate. Ambiguous dates (e.g., "02/03/2005" could be either Feb 3 or Mar 2) are interpreted according to the user's regional settings.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

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