Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Conversion to SQL Server datetime format

I am retrieving the current date (via DateTime.Now) and need to know how to format this into an SQL Server datetime field type format.
0
tma050898
Asked:
tma050898
1 Solution
 
HummusxCommented:
You could do:

mydate = New Data.SqlTypes.SqlDateTime(Now())
0
 
tma050898Author Commented:
Just what I needed. Thanks!
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now