Wrox Programmer Forums
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x 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 September 21st, 2010, 03:31 AM
Authorized User
 
Join Date: Dec 2006
Posts: 43
Thanks: 4
Thanked 0 Times in 0 Posts
Send a message via MSN to Yasho
Default convertion from string to time

I have a data base and time is stored as text in the database. From 8.00 to 18.00 with 30 min intervals. example 8, 8.30, 9.00, 9.30. I have to convert them to AM PM format.

i tried cdate didnt work. I googled and saw some atricles which were vague. MSDN articles topped the list of Ambiguity.

Had been trying for last 4 hours with no results. Feeling very low at the moment

last code i used

Dim dt AsDate
dt = CDate(Format(myvalue, "0:00")) and also
dt = CDate(Format(myvalue, "00:00"))

myvalue is in the string format


Will appreciate help
__________________
yvk





Similar Threads
Thread Thread Starter Forum Replies Last Post
convertion vamshidhar ASP.NET 2.0 Professional 3 March 9th, 2009 08:45 AM
Convert String To Time GailCG ASP.NET 2.0 Basics 1 January 9th, 2008 01:09 AM
XSLT convertion help mwells XSLT 3 February 2nd, 2007 10:00 AM
Convertion schanda ASP.NET 1.0 and 1.1 Professional 1 March 23rd, 2006 02:53 PM
Convertion using Masks rtr1900 Classic ASP Databases 2 November 29th, 2005 06:28 AM





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