Showing posts with label time. Show all posts
Showing posts with label time. Show all posts

Saturday, 30 April 2016

Save date and time from dropdown in sql database table using javascripts

I will describe here to save hh and mm format dropdown value to database. Firstly , I have two dropdown first is Hours and second is Minutes .






When you will fill data then press F12 or inspect element . I will showing it value following as:


Here , you will show $scope._MinuteDataTypeModal contains value 30 and next image show Hours data as:



And I am concatenate both modal using ":" to time format.




In above picture, $scope.VisitTimeModal show actual time format that is "10:30:00".

And in c# or server side code automatically get data in class using get set property . And in below picture show highlighted section that is time is save in database.