Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. string to date conver

string to date conver

Scheduled Pinned Locked Moved Visual Basic
helptutorial
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    illusionFinder
    wrote on last edited by
    #1

    hi there, I have a problem of using Conver function to convert a text '01/01/2006' for example to datetime please give me an example thanks

    J G 2 Replies Last reply
    0
    • I illusionFinder

      hi there, I have a problem of using Conver function to convert a text '01/01/2006' for example to datetime please give me an example thanks

      J Offline
      J Offline
      Jon Sagara
      wrote on last edited by
      #2

      DateTime.Parse[^] DateTime.ParseExact[^] Jon Sagara Look at him. He runs like a Welshman. Doesn't he run like a Welshman? Doesn't he? I think he runs like a Welshman. Sagara.org | Blog | My Articles

      1 Reply Last reply
      0
      • I illusionFinder

        hi there, I have a problem of using Conver function to convert a text '01/01/2006' for example to datetime please give me an example thanks

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        That date format is ambigous, it could either be interpreted as dd/mm/yyyy or mm/dd/yyyy, and which one is chosen depends on what the current culture setting happens to be. Specify a CultureInfo or DateTimeFormatInfo when you parse the string. --- b { font-weight: normal; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups