Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old October 7th, 2008, 07:52 AM
Newbie
 
Join Date: Oct 2008
Posts: 21
Default Convert Date

How i can convert Date dd/mm/yy to mm/dd/yy?

Pls any one help me immediately.... is very very urgent. Because i am new for asp and vbscript and javascript.
Reply
  #2  
Old October 7th, 2008, 09:59 AM
DrBunchman's Avatar
Moderator
 
Join Date: Jan 2008
Location: Winchester, UK
Posts: 924
Default

Hi shivasusan,

There are a few things you can do to fix this. You can use any of the vbscript date formatting functions to get the desired effect. There is a list of them here.

Alternatively you can set the locale property of your session to your local region using the following code at the top of your page:

Expand|Select|Wrap|Line Numbers
  1. Session.LCID = 1033
This would set it to the American date format. A full list of the LCID values can be found here.

Hope this helps,

Dr B
Reply
Reply

Bookmarks

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 On
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