Results 1 to 3 of 3

Thread: Convert MSSQL datetime field to char

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Posts
    22

    Question Convert MSSQL datetime field to char

    How can I convert a MSSQL datetime field value to a normal date en time?
    Can anyone help me with this?

    Example MSSQL field:

    numeric(18,0) = 1202417100000

    How to convert the above numeric to a normal date and time.. in vb6??

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Convert MSSQL datetime field to char

    Moved to Database Development

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Convert MSSQL datetime field to char

    That doesn't look like a DateTime field.. how are you getting that?

    What code have you tried to get the value into VB?

Posting Permissions

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



Click Here to Expand Forum to Full Width