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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DotNetLover_BaanConnect With a Mentor Commented:
Hi there.. try this...
        Dim SQLDtTime As New System.Data.SqlTypes.SqlDateTime(Now)
        MsgBox(SQLDtTime.ToString)

-Baan
0
All Courses

From novice to tech pro — start learning today.