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. Display time in AM/PM Format

Display time in AM/PM Format

Scheduled Pinned Locked Moved Visual Basic
csharphelp
3 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.
  • M Offline
    M Offline
    Mahesh1679
    wrote on last edited by
    #1

    Hi, I have a small problem in displaying time AM/PM format in VB.NET. format(datetime.Now,"hh.mm.ss AMPM") This is the code i have used but it is not displaying in AMPM format. Pls give me some suggestion. Thanks Mahesh

    M T 2 Replies Last reply
    0
    • M Mahesh1679

      Hi, I have a small problem in displaying time AM/PM format in VB.NET. format(datetime.Now,"hh.mm.ss AMPM") This is the code i have used but it is not displaying in AMPM format. Pls give me some suggestion. Thanks Mahesh

      M Offline
      M Offline
      Mohamed Ishak
      wrote on last edited by
      #2

      use this format Label.Text = Format(DateTime.Now,"dd'/'MM'/'yyyy hh':'mm':'ss tt") for more format see msdn:) Ishak

      1 Reply Last reply
      0
      • M Mahesh1679

        Hi, I have a small problem in displaying time AM/PM format in VB.NET. format(datetime.Now,"hh.mm.ss AMPM") This is the code i have used but it is not displaying in AMPM format. Pls give me some suggestion. Thanks Mahesh

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        search for this:

        DateTime.Now().ToString(...)


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        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