convert a number to time format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getnitha
    New Member
    • Jul 2007
    • 5

    convert a number to time format

    how to convert a number to time format in vb.net

    eg: 8 to 8:00:00

    i am storing in sql server number as nvarchar while retreiving in code i need to convert it as 8:00:00 for further calculations

    can anyone plse help me
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    nvarchar can have the type string when read back into your code. Use the Parse and .ToString() property of DateTime to handle this.

    Comment

    Working...