PC Review


Reply
Thread Tools Rate Thread

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

 
 
Miguel Dias Moura
Guest
Posts: n/a
 
      12th Apr 2004
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?


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      12th Apr 2004
Hi Miquel,

Did you look what this can do for you?

ToString("dd MM yyyy")
ToString("HH:mm")

Cor


 
Reply With Quote
 
Miguel Dias Moura
Guest
Posts: n/a
 
      13th Apr 2004
Hi,

i got this answer from somebody else:

"I suspect that those two machines have different culture setting.
You can enforce it in Globalization section of ASPNET configuration file."

Anyway, i also looked sometime ago to what you say.

However until now i wasn't able to make this work.

I really would appreciate that somebody could send me some code solutions to
the examples i sent using ToString or Globalization because somehow i have
not being able to make this work and i am on this for 2 weeks but now the
deliver of this web site is only dependent of this.

Thank You,
Miguel

"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Miquel,
>
> Did you look what this can do for you?
>
> ToString("dd MM yyyy")
> ToString("HH:mm")
>
> Cor
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      13th Apr 2004
Hi Miguel,

Did you try my answer?

Of course have those 2 machines different globalizations settings however
how would you try to manage the globalizations settings on all your pages
using webforms?

Cor


 
Reply With Quote
 
Miguel Dias Moura
Guest
Posts: n/a
 
      15th Apr 2004
Thanks,

finally i found someone that could answer to this simple question.

Thank You Very Much,
Miguel

"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Miquel,
>
> Did you look what this can do for you?
>
> ToString("dd MM yyyy")
> ToString("HH:mm")
>
> Cor
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date time format question please =?Utf-8?B?ZmVyZGU=?= Microsoft Excel Misc 7 20th Aug 2007 06:00 PM
Date/Time format question =?Utf-8?B?ZWxlbmE=?= Microsoft Dot NET Compact Framework 2 23rd Jul 2007 09:12 PM
change the default date time format for an entire web site? Jéjé Microsoft ASP .NET 0 14th Nov 2005 09:50 PM
Date / Time format question to finish and deliver web site. Thank You. Miguel Dias Moura Microsoft ASP .NET 1 12th Apr 2004 06:01 PM
calculating the finish time/date from the start time/date swiss tony Microsoft Excel Worksheet Functions 1 21st Oct 2003 01:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:45 AM.