Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle ASP
|
Oracle ASP Using ASP with Oracle databases. For Oracle discussions not specific to ASP, please see the Oracle forum. For more ASP discussions, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 28th, 2004, 10:03 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default DateFormat Problem

How can i convert the date on the format(dd/mm/yyyy or dd/mm/yy) to oracle's date format dd/mmm/yy before inserting a record? is there any javascript/vbscript function available? pls guide me.

Thankx!


Yours,
Saran
__________________
Best Regards,
Saran.
 
Old May 28th, 2004, 02:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

You could use some kind of String mnipulation to reorder the string elements, or you could use the Date object to split out the components as well. Although why not just use the Oracle TO_DATE and TO_CHAR functions to convert your date as part of the SQL ?
 
Old June 8th, 2004, 07:47 AM
Authorized User
 
Join Date: May 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to saravananedu
Default

thanks greg,
  now it's working. i use to_date like "To_Date(sysdate)"
thank u!
Quote:
quote:Originally posted by Greg Griffiths
 You could use some kind of String mnipulation to reorder the string elements, or you could use the Date object to split out the components as well. Although why not just use the Oracle TO_DATE and TO_CHAR functions to convert your date as part of the SQL ?
Yours,
Saran





Similar Threads
Thread Thread Starter Forum Replies Last Post
Set DateFormat kokisun Reporting Services 1 July 12th, 2006 02:13 PM
saves wrong dateformat in Access Haroldd Access ASP 2 July 23rd, 2003 03:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.