• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

ASP.net VB time(7)


I have an ASP.net 4 project that has a SQL database with a table
 that has a column of time time(7).
What type do I declare a variable as for this column
Dim ?????
oEndTime = Convert.ToDateTime(reader("End time"))
Murray Brown
Murray Brown
1 Solution

You should use TimeSpan

Dim oEndTime As TimeSpan = CType(reader.GetTimeSpan(yourEndTimeColumnIndex), TimeSpan)
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
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.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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