473,396 Members | 2,158 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,396 software developers and data experts.

asp.net date objects vs. classic asp date objects


I have scripts on a server that awhile back had new option/server packs
installed (to accomodate security and net framework issues) and my
classic asp date references
"Date()" and "Now" will sometimes flip flop the formatting of the date
from 10/3/2003 to 3/10/2003 (european mode).

What would be a good way to use an include file to perhaps an asp.net
date object, or where would I find a good reference to using an aspx
file to calculate and display the date properly so that I can avoid this
flip flop snafu of the date formatting.
thanks
Muench


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
1 5386
IN .NET, you can use the globalization/localization objects to format the
date however you want. In fact, you can get the proper format of the country
you are looking at and display it based on the user's culture. You simply
flip the culture to the proper culture for the database before you save and
flip to user's culture when you pull from the database. .NET makes this
really easy.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"J. Muenchbourg" <jo*****@canada.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...

I have scripts on a server that awhile back had new option/server packs
installed (to accomodate security and net framework issues) and my
classic asp date references
"Date()" and "Now" will sometimes flip flop the formatting of the date
from 10/3/2003 to 3/10/2003 (european mode).

What would be a good way to use an include file to perhaps an asp.net
date object, or where would I find a good reference to using an aspx
file to calculate and display the date properly so that I can avoid this
flip flop snafu of the date formatting.
thanks
Muench


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2

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

Similar topics

0
by: J. Muenchbourg | last post by:
I have scripts on a server that awhile back had new option/server packs installed (to accomodate security and net framework issues) and my classic asp date references "Date()" and "Now" will...
7
by: | last post by:
Source Error: Line 173: sData(rownumber - 1, lcnt) = WhatCol.Value Line 174: End IF Line 175: If (sData(rownumber, lcnt) = sData(rownumber - 1, lcnt)) AND...
5
by: Thomas Scheiderich | last post by:
I need to format a todays date as: June 22, 2004 The closest I can come is Tuesday, June 22, 2004 I need to do this in both asp.net and asp.
1
by: Chumley Walrus | last post by:
I'm changing an old classic asp script over to asp.net; it displays links corresponding to each day of the week <script runat="server"> Sub Page_Load(s As Object, e As EventArgs) ...
5
by: Alan Ho | last post by:
What are intrinsic objects of asp.net? thx
7
by: Christian Blackburn | last post by:
Hi Gang, VB6 has a command called Date and it would not to surprisingly return the date in the following ways: Date() = 9/10/2003 Date(now) = 9/10/2003 Date("8/12/2000 12:20PM") = 8/12/2000
161
by: KraftDiner | last post by:
I was under the assumption that everything in python was a refrence... so if I code this: lst = for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.....
4
by: =?Utf-8?B?RHlsYW5TbWl0aA==?= | last post by:
Is there an end-of-support date for Classic ASP? For example, I know that VB6 standard support ended sometime around March 2005, and extended support was available until around March 2008. Is...
4
by: =?Utf-8?B?ZGNoMw==?= | last post by:
Is there a way to conditionally format a dateTime field to produce on result if the value is 10/31/2008 12:00 AM (user didn't enter a time) and another result if the value is 10/31/2008 5:30 PM...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.