Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to save time from kendo timepicker with json into sqlserver?
Posted

1 solution

Well, there's several steps

1 - grab the time from the time picker in to a variable.

2 - using stringify if you MUST turn it in to JSON ( although I have no clue why you'd do that )

3 - make an AJAX call to pass the value to the server

4 - insert it in to the database


You are given two fields to enter your question for a reason. Your subject line is good, but repeating it is a good indication that you've not tried to do anything for your self, and it's not clear if what you're asking is really what you want to do. You should explain what you've tried and why you want to do this. Why do you think you need JSON, for example ? Do you realise SQL Server is on the server, and not the client ?

var time = timepicker.value()


is how you get the time out. From there, really, you need to define what you want to do, and why.

Of course, you also need to work out what other data you need to save, just saving a time in to the database doesn't really help with anything.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900