Display time in AM/PM Format
-
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
-
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
use this format Label.Text = Format(DateTime.Now,"dd'/'MM'/'yyyy hh':'mm':'ss tt") for more format see msdn:) Ishak
-
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