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, everything works fine when testing in my computer. However, when i
uploaded the web site to my hosting space in the date/time appears as
follows:
Date: DD-MM-YYYY (uses 1 insted of 01)
Time: HH:MM (12 hours - uses PM and AM)
The formats i am using are:
Date
....ToString(\" d\")
Time
.....ToString(\ "t\")
As i said, it works just i want in my computer but in your server everything
changes.
I have no idea of how to solve this. Can somebody help me out?
Thank You Very Much,
Miguel 4 2787
Miguel
Have a look at http://msdn.microsoft.com/library/de...oClassTopic.as
It says D, M, Y use the long date patern. If you want to force with leading zeros try dd/MM/yyy
Chris
----- Miguel Dias Moura wrote: ----
Hello
i am just finishing a web site in ASP.net / VB using Dreamweaver MX 2004 an
in all the pages i use the date/time format as follows
Date: DD-MM-YYY
Time: HH-MM (24 hours
Anyway, everything works fine when testing in my computer. However, when
uploaded the web site to my hosting space in the date/time appears a
follows
Date: DD-MM-YYYY (uses 1 insted of 01
Time: HH:MM (12 hours - uses PM and AM
The formats i am using are
Dat
....ToString(\" d\"
Tim
.....ToString(\ "t\"
As i said, it works just i want in my computer but in your server everythin
changes
I have no idea of how to solve this. Can somebody help me out
Thank You Very Much
Migue
Miguel
Have a look at http://msdn.microsoft.com/library/de...oClassTopic.as
It says D, M, Y use the long date patern. If you want to force with leading zeros try dd/MM/yyy
Chris
----- Miguel Dias Moura wrote: ----
Hello
i am just finishing a web site in ASP.net / VB using Dreamweaver MX 2004 an
in all the pages i use the date/time format as follows
Date: DD-MM-YYY
Time: HH-MM (24 hours
Anyway, everything works fine when testing in my computer. However, when
uploaded the web site to my hosting space in the date/time appears a
follows
Date: DD-MM-YYYY (uses 1 insted of 01
Time: HH:MM (12 hours - uses PM and AM
The formats i am using are
Dat
....ToString(\" d\"
Tim
.....ToString(\ "t\"
As i said, it works just i want in my computer but in your server everythin
changes
I have no idea of how to solve this. Can somebody help me out
Thank You Very Much
Migue
Miguel Dias Moura wrote: 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, everything works fine when testing in my computer. However, when i uploaded the web site to my hosting space in the date/time appears as follows:
Date: DD-MM-YYYY (uses 1 insted of 01) Time: HH:MM (12 hours - uses PM and AM)
The formats i am using are:
Date ...ToString(\"d \")
Time ....ToString(\" t\")
As i said, it works just i want in my computer but in your server everything changes.
The "d" and "t" format strings specify short date and short time
formats. Those formats vary their output based on the CultureInfo in
effect.
If you want to force your particular format regardless of the set
culture, then use:
date.ToString( "dd-MM-yyyy");
time.ToString( "HH-mm");
See the documentation for the DateTimeFormatI nfo class for more information.
--
mikeb
Miguel Dias Moura wrote: 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, everything works fine when testing in my computer. However, when i uploaded the web site to my hosting space in the date/time appears as follows:
Date: DD-MM-YYYY (uses 1 insted of 01) Time: HH:MM (12 hours - uses PM and AM)
The formats i am using are:
Date ...ToString(\"d \")
Time ....ToString(\" t\")
As i said, it works just i want in my computer but in your server everything changes.
The "d" and "t" format strings specify short date and short time
formats. Those formats vary their output based on the CultureInfo in
effect.
If you want to force your particular format regardless of the set
culture, then use:
date.ToString( "dd-MM-yyyy");
time.ToString( "HH-mm");
See the documentation for the DateTimeFormatI nfo class for more information.
--
mikeb This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jay |
last post by:
I previously posted this question under Visual Basic
newsgroup, but was advised to re-post here.
I'm hoping someone can help me solve an issue I'm having
with VB.Net and Access 2000.
Here's the issue. I hope I've included all relevant
information.
On a form, I have a DateTimePicker with the following
|
by: goochey |
last post by:
I'm trying to convert a Julian Date (Format "4365") into an actual calendar
date in Visual Basic, can anyone help me out with this.
|
by: Dario Di Bella |
last post by:
Hi all,
we have the following urgent issue affecting our development team.
Initially we had one particular workstation that failed executing
queries on a DB2 database, raising an invalid date format exception
(SQLSTATE=22007). The same queries worked fine on all the other
workstations. The date format we want to use is "dd/mm/yyyy".After
reinstalling several times the db2 runtime client w/ different
options, we found on a technical forum...
|
by: Miguel Dias Moura |
last post by:
Hello,
i am just finishing a web site in ASP.net / VB and in all the pages i use
the date/time format as follows:
Date: DD-MM-YYYY
Time: HH-MM (24 hours)
Anyway, everything works fine when testing in my computer. However, when i
uploaded the web site to my hosting space in the date/time appears as
|
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, everything works fine when testing in my computer. However, when i
uploaded the web site to my hosting space in the date/time appears as
| |
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 format. Ex: 02-02-2004 and 02:05
|
by: Shapper |
last post by:
Hello,
I created a dataset from a XML file. One of the dataset fields is
.
In an ASP:Repeater I am displaying the field.
<%# DataBinder.Eval(Container.DataItem, "pubDate", "{0:f}") %>
The date displayed has the following format, the same as in the XML
file:
|
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 database I have a table with Date/time column. The database is
located on a machine that is set to dd/mm/yyyy also.
When I enter date 7/1/08 (as in January 7, 2008), it stores it in the
database as 1/7/08 instead of 7/1/08. Why is it like that...
|
by: WebCM |
last post by:
There is a function: http://paste.ubuntu.com/21865
It needs GMT date in YYYY-MM-DD HH:MM:SS format - in SQL: datetime. If date is the same as today, the function returns "Today". There
is one problem. This function does not recognize time zones.
How to adjust date to user's time zone? Is converting to timestamp()
and then to format readable to visitors the one and only solution
(e.g. strtotime() + date() OR DateTime object)? Perhaps,...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |