Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 08:45 AM
J. Muenchbourg
Guest
 
Posts: n/a
Default 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!
  #2  
Old July 19th, 2005, 08:45 AM
msnews.microsoft.com
Guest
 
Posts: n/a
Default Re: asp.net date objects vs. classic asp date objects

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" <jodaddy@canada.com> wrote in message
news:O1elgXdiDHA.2192@TK2MSFTNGP09.phx.gbl...[color=blue]
>
> 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![/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles