If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > formatting oracle date for display.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-06-05, 10:56
dotolee dotolee is offline
Registered User
 
Join Date: Feb 2003
Posts: 107
formatting oracle date for display.

I have an oracle date being sent to my asp page. by default it appears as 112656900000.
In the database, it appears as 13-SEPT-2005 120000AM.
How do convert this to display something like Sept 13, 2005 in ASP?
Please and thanks.
Reply With Quote
  #2 (permalink)  
Old 12-07-05, 00:14
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
To show a date like July 25, 2005:

<%= MonthName(Month(MyDate)) %>&nbsp;<%= Day(MyDate) %>,&nbsp;<%=Year(MyDate) %>
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #3 (permalink)  
Old 12-07-05, 08:49
dotolee dotolee is offline
Registered User
 
Join Date: Feb 2003
Posts: 107
Oracle Date

That doesn't seem to work.
Getting the error:

Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "1058400000000"]'
/issueview/test.asp, line 6

The code looks like:
<%= MonthName(Month("1058400000000")) %>&nbsp;<%= Day("1058400000000") %>,&nbsp;<%=Year("1058400000000") %>
Reply With Quote
Reply

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