valueReturns: string

Gets or sets the value of the datetimepicker.

Parameters

NameTypeDescription
value {string} The value that needs to be selected.

Examples

Get

    
 <button class="gj-button-md" onclick="alert($datetimepicker.value())">Get Value</button>
 <hr/>
 <input id="datetimepicker" width="312" value="17:50 03/27/2023" />
 <script>
     var $datetimepicker = $('#datetimepicker').datetimepicker();
 </script>

  

Set

    
 <button class="gj-button-md" onclick="$datetimepicker.value('13:40 08/01/2017')">Set Value</button>
 <hr/>
 <input id="datetimepicker" width="312" />
 <script>
     var $datetimepicker = $('#datetimepicker').datetimepicker();
 </script>