Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > .NET Framework 1.x
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 21st, 2010, 04:31 AM
Authorized User
 
Join Date: Dec 2006
Location: Tucson, AZ, USA.
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
Reply With Quote
Reply


Thread Tools
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
convertion vamshidhar ASP.NET 2.0 Professional 3 March 9th, 2009 09: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



All times are GMT -4. The time now is 11:41 PM.


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