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?
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?