we're doing project , there's date picker in bootstrap, problem is, can't seem in servlet. here's code date picker:
<div class="bfh-datepicker" data-max="today" data-close="false" data-date="today" data-format="y-m-d"> <input id="birthdate" type="text" data-name="birthdate" name='birthdate' style='background-color:white;'> </div>
and here's code relaying information database:
stmt3.setstring(5, request.getparameter("birthdate"));
i made birthdate column in database varchar test if servlet getting information, guess doesn't. also, if happen information date picker:
- does return string?
- if returns string, how supposed convert date put in database?
note: i'm using java , mysql
include js
files.try this
<input class="datepicker_multi_start" name="datepicker[]"/> <script type="text/javascript"> $(document).ready(function() { $("#append").click( function() { $(this).datepicker(); }); </script>