Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 19th, 2004, 03:49 PM
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Date Fomatting

Hello,

Ok this is rather simple I believe but I am just having a rough time. I need to format the following into a readable date and time.

Date:
20040218 'This is what I have now
02/18/2001 'This is what I want

Time:
093300 'This is what I have now
9:33 'This is what I want

Any suggestions would be of great help. Thanks in advance.

  #2 (permalink)  
Old March 8th, 2004, 06:32 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

k=20040218
k1=mid(k,1,4)
k2=mid(k,7,5)
k3=mid(k,5,2)
Response.Write k3&"/"& k2&"/"&k1



surendran
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy date values between date controls Alcapone Javascript How-To 1 April 13th, 2006 03:13 AM
need help in Datagrid fomatting prasadd ASP.NET 2.0 Professional 1 October 31st, 2005 07:21 AM
Outlook Email Fomatting roguedog Access 1 February 1st, 2005 05:02 PM
DTS Import ( Date string to Date field) gfowajuh SQL Server 2000 1 September 30th, 2003 06:28 AM
Convert String Date to Date for a SQL Query tdaustin Classic ASP Basics 4 July 7th, 2003 06:01 PM



All times are GMT -4. The time now is 09:30 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.