Date / Time format question to finish and deliver web site. Thank You.

M

Miguel Dias Moura

Hello,

when i preview an ASP.net web site i am creating to a client Date and Time
show as follow:

Date: dd-mm-yyyy
Time: hh-mm (24 hour clock. Ex: 21:45)

Both Date and Time use 2 digits format. Ex: 02-02-2004 and 02:05

When i preview the web site in the hosting company server the format change
to:

Date: dd-mm-yyyy
Time: hh-mm (12 hour clock. Ex: 9:45 PM)

Both Date and Time loose the 2 digits format. Ex: 2-2-2004 and 2:05 AM

In this web site i use date and time only in 2 situations:
1. Displaying in an ASP.net Time and Date field using:
<%# DateTime.Parse(dbAccess.FieldValue("TimeF",
Container)).ToString("t") %>,
<%# DateTime.Parse(dbAccess.FieldValue("DateF", Container)).ToString("d")
%>
2. Displaying Time in an ASP.net Calendar Control

I looked everywhere and until now i wasn't able to make this work.
It's the only thing i need to solve to deliver the web site to my client.

Can you help me out?

Thank You,
Miguel

P.S: Can you please be as specifique as possible with what i should do so i
don't get lost?
 
C

Cor Ligthert

Hi Miguel,

I answered this question from you in another newsgroup

Please do not multipost

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top