Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How would i take the VB.net NOW and convert to SQL date/time ?

Posted on 2004-08-12
1
Medium Priority
?
195 Views
Last Modified: 2010-04-23
How would i take the VB.net NOW and convert to SQL date/time ?


8/22/2004 2:58:12 PM
to SQL date time ?
0
Comment
Question by:Vartana
1 Comment
 
LVL 18

Accepted Solution

by:
DotNetLover_Baan earned 2000 total points
ID: 11789198
Hi there.. try this...
        Dim SQLDtTime As New System.Data.SqlTypes.SqlDateTime(Now)
        MsgBox(SQLDtTime.ToString)

-Baan
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Screencast - Getting to Know the Pipeline
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question