Closed Thread
Results 1 to 4 of 4

Thread: How to only store time in visual basic and sql 2008

  1. #1
    WendyT is offline Newbie
    Join Date
    May 2009
    Posts
    6
    Rep Power
    0

    How to only store time in visual basic and sql 2008

    Hi everybody,

    I wonder how can we store time only in SQL database through Visual Studio 2008? In Visual Studio 2008, when I use datetime, Visual Studio and SQL store the date and time together. However I only want to store time. Thanks for the help.

    Wendy

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,448
    Blog Entries
    74
    Rep Power
    143

    Re: How to only store time in visual basic and sql 2008

    You can store the date portion as 12/31/1899. That allows you to ignore it in the application.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    WendyT is offline Newbie
    Join Date
    May 2009
    Posts
    6
    Rep Power
    0

    Re: How to only store time in visual basic and sql 2008

    I have tried this trick, but when I display the data thru dataview, the date still appears there. Help me please somebody....

    Wendy Tjan

  5. #4
    Join Date
    Jul 2006
    Posts
    16,448
    Blog Entries
    74
    Rep Power
    143

    Re: How to only store time in visual basic and sql 2008

    VB should have a way to change the display format. Since I'm not a VB programmer, I can't offer much more than that.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help Needed With Visual Basic 2008
    By wolf78 in forum Visual Basic Programming
    Replies: 8
    Last Post: 03-11-2010, 07:02 PM
  2. pause in Visual basic 2008
    By igee in forum Visual Basic Programming
    Replies: 2
    Last Post: 01-28-2010, 05:37 AM
  3. Visual Basic 2008 vs. Visual Basic 2005 - Compatibility
    By cande_300 in forum Visual Basic Programming
    Replies: 1
    Last Post: 01-23-2010, 09:00 AM
  4. Visual basic 2008 DB Oracle
    By foxbymariuss in forum Visual Basic Programming
    Replies: 0
    Last Post: 05-14-2009, 04:05 AM
  5. Help with visual basic 2008
    By nickahs18 in forum Visual Basic Programming
    Replies: 1
    Last Post: 05-07-2008, 12:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts