Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 February 6th, 2006, 04:00 PM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default String To Time Conversion?

I can't think clearly today, so please bare with my inquiry.

I have a textbox on my ASP.Net page in which the user enters a time in the format HH:mm (i.e.- 12:12). Within my Oracle DB I have a field to store the time (Oracle datatype of DateTime). How would I process the time string into a time that can be stored in the database? It seems as though I need to append a Date to the beginning of my time in order for it to work. Thanks in advance.
 
Old February 15th, 2006, 09:04 PM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The best solution would probably be to use something like the TODATE function in Oracle. My Oracle knowledge is aged, but I'm reasonably sure they have a function which will convert the string to a date and time and format to display or save only the time. My Oracle 9 book has it.
Pass it to Oracle as a string. Let Oracle convert it.
HTH

Adj. Prof. CIS





Similar Threads
Thread Thread Starter Forum Replies Last Post
numeric to string conversion dowens VBScript 1 May 25th, 2007 04:11 PM
String to Time conversion Neal XSLT 1 March 1st, 2006 07:51 AM
string character conversion Neal XSLT 2 February 23rd, 2006 08:23 AM
Conversion from string to date kshantik Access 2 May 19th, 2004 12:17 PM
String to Double conversion mkpriya VS.NET 2002/2003 3 October 21st, 2003 05:26 AM





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