Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. date.ToString("yyyy-MM-dd HH:mm:ss.fff")
  2.  
  3. Shared SomeFunction(ByRef sStartDate as String)
  4. Dim StartTime As DateTime = DateTime.Parse(sStartDate)
  5. command.Connection = connection
  6. command.CommandType = CommandType.StoredProcedure
  7. command.CommandText = "SomeStoredProcedure"
  8. command.Parameters.Add("@StartDateTime", SqlDbType.DateTime)
  9. command.Parameters("@StartDateTime").Value = StartTime.ToString("yyyy-MM-dd HH:mm:ss.fff")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement