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
  1. Home
  2. General Programming
  3. Visual Basic
  4. date fomat

date fomat

Scheduled Pinned Locked Moved Visual Basic
4 Posts 3 Posters 0 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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir/madam, I want to convert the adate in the following format dd/mm/yyyy hh:mm tt how should i do that Thanks and Regards Pankaj Garg

    _ M A 3 Replies Last reply
    0
    • A amaneet

      Sir/madam, I want to convert the adate in the following format dd/mm/yyyy hh:mm tt how should i do that Thanks and Regards Pankaj Garg

      _ Offline
      _ Offline
      _mubashir
      wrote on last edited by
      #2

      Hi, try the following MsgBox(Now.ToString("dd/MM/yyyy hh:mm tt")) Mubashir

      Every job is a self portrait of the person who did it.

      1 Reply Last reply
      0
      • A amaneet

        Sir/madam, I want to convert the adate in the following format dd/mm/yyyy hh:mm tt how should i do that Thanks and Regards Pankaj Garg

        M Offline
        M Offline
        manni_n
        wrote on last edited by
        #3

        try this coding dim yourstring as string yourstring = datetime.now textbox1.text=yourstring u'll get date n time in required format

        1 Reply Last reply
        0
        • A amaneet

          Sir/madam, I want to convert the adate in the following format dd/mm/yyyy hh:mm tt how should i do that Thanks and Regards Pankaj Garg

          A Offline
          A Offline
          amaneet
          wrote on last edited by
          #4

          Thanks to both of u.

          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