I wonder if any of you have had this problem before. I have a variable dt
which reads the scmalldatetime field in the database. I want to show the
date & time on aspx page in the format 'dd/MM/yyyy hh:mm tt' using this
statement:
dt.ToString("dd/MM/yyyy hh:mm tt")
But the AMPM designators does not appear. Other parts of the date & time can
be determined using the format string except the AMPM designator. The
regional setting of both my pc and the server have the AM PM symbol set
correctly.
I've even tried hard-coded the time to show be shown the page like this:
Dim dt As DateTime = #10/5/1971 5:38:00 PM#
Dim sdt As String = dt.ToString("dd/MM/yyyy hh:mm tt")
lblDateTaken.Text = sdt
And the date is shown as 05/10/1971 05:38
Is there anything I should do to make them appear the way I want?
thx
----------------------------------------------------------------------------
---- -----------------------------------------------------------------------
---------