How to save a DateTime value selected by the user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sureshkumar6
    New Member
    • Oct 2013
    • 3

    How to save a DateTime value selected by the user

    first time if i select the datatimepicker value and i saved. next time it will automatically show the next date , how can i do it , pls send me the coding
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Hi Sureshkumar,

    This forum is designed to help people through problems that they are facing but it is not fair to ask other people to do your work for you and so it is a policy here not to just "give the code" to make things work. Once you have implemented some code, we can help you through the problems you are having it.

    In your case, the user is going to select a date and time using the date picker...then they are going to hit the save button or something to save it. Write a method that handles that button click event, retrieve the DateTime that they selected and then save it into your database.

    To get you started check out this article on how to use a database in your program.

    If you do not have a database already available, you should consider which type of database you want to use and ask for help in the appropriate database forum.

    Comment

    Working...