Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. date time

date time

Scheduled Pinned Locked Moved Visual Basic
databasequestioncsharpsql-serversysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 832313
    wrote on last edited by
    #1

    Hi, I'm working on vb. net and sql server... I have a table called "rproduct" which has 2 fields declared as 'datetime' namely for "date received" and "time received". I'm using datagrid in vb .net to view the table data and also to modify and update etc. The problem was that I wasnt able to view only time and only date in the respective fields, instead I used to get 'date and time' in both the fields. So what I did is something like this select substring(cast(dater as varchar),0,13), substring(cast(timeR as varchar),14, 20) from rproduct and I set respective column in dataset's .xsd file as 'string' so that I can c the only date in "date received" field and just time in "time received" field. But now the problem is I dont know how can I save the changes made in these fields back to database??? shatru2k

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups