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

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 ?
LVL 1
VartanaAsked:
Who is Participating?
 
DotNetLover_BaanConnect With a Mentor Commented:
Hi there.. try this...
        Dim SQLDtTime As New System.Data.SqlTypes.SqlDateTime(Now)
        MsgBox(SQLDtTime.ToString)

-Baan
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.