473,411 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

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

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?
Nov 20 '05 #1
5 938
Hi Miquel,

Did you look what this can do for you?

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

Cor
Nov 20 '05 #2
Hi Miquel,

Did you look what this can do for you?

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

Cor
Nov 20 '05 #3
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" <no**********@planet.nl> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
Hi Miquel,

Did you look what this can do for you?

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

Cor

Nov 20 '05 #4
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
Nov 20 '05 #5
Thanks,

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

Thank You Very Much,
Miguel

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
Hi Miquel,

Did you look what this can do for you?

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

Cor

Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
0
by: Miguel Dias Moura | last post by:
Hello, i am just finishing a web site in ASP.net / VB using Dreamweaver MX 2004 and in all the pages i use the date/time format as follows: Date: DD-MM-YYYY Time: HH-MM (24 hours) Anyway,...
4
by: Miguel Dias Moura | last post by:
Hello, i am just finishing a web site in ASP.net / VB using Dreamweaver MX 2004 and in all the pages i use the date/time format as follows: Date: DD-MM-YYYY Time: HH-MM (24 hours) Anyway,...
1
by: Miguel Dias Moura | last post by:
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...
2
by: Miguel Dias Moura | last post by:
Hi, i created a dataSet in an ASP.Net page which: 1. Loads all fields from each database record. 2. Creates a new field using 2 of the existing fields: FullName = FirstName + ' ' + LastName...
3
by: yxq | last post by:
Hello, The XP Desktop clean wizard can get the last access time of desktop shortcut, i found that the info come from ...
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This problem happens in either Access or SQL Server. In the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.