mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
New version 1.0.9
This commit is contained in:
parent
aa01e4bcc1
commit
f4cf038d20
22
doc.tpl
22
doc.tpl
@ -182,6 +182,26 @@ $('#_datetimepicker6').datetimepicker({
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<h4>minDate and maxDate Example</h4>
|
||||||
|
<p>JavaScript</p>
|
||||||
|
<pre><code data-language="javascript">$('#datetimepicker7').datetimepicker({
|
||||||
|
timepicker:false,
|
||||||
|
formatDate:'Y/m/d',
|
||||||
|
minDate:'-1970/01/02',//yesterday is minimum date(for today use 0 or -1970/01/01)
|
||||||
|
maxDate:'+1970/01/02',//and tommorow is maximum date calendar,
|
||||||
|
});</code></pre>
|
||||||
|
<p>Result</p>
|
||||||
|
<p><input id="_datetimepicker7" type="text" value="" /></p>
|
||||||
|
<script>$(function(){
|
||||||
|
$('#_datetimepicker7').datetimepicker({
|
||||||
|
timepicker:false,
|
||||||
|
formatDate:'Y/m/d',
|
||||||
|
minDate:'-1970/01/02', // yesterday is minimum date
|
||||||
|
maxDate:'+1970/01/02', // and tommorow is maximum date calendar
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
<h2>Full options list</h2>
|
<h2>Full options list</h2>
|
||||||
<table class="table table-condensed table-bordered table-striped">
|
<table class="table table-condensed table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
@ -271,6 +291,7 @@ $('#_datetimepicker6').datetimepicker({
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td><pre><code data-language="javascript">{minDate:0,} // today
|
<td><pre><code data-language="javascript">{minDate:0,} // today
|
||||||
{minDate:'2013/12/03'}
|
{minDate:'2013/12/03'}
|
||||||
|
{minDate:'-1970/01/02'} // yesterday
|
||||||
{minDate:'05.12.2013',formatDate:'d.m.Y'}</code></pre></td>
|
{minDate:'05.12.2013',formatDate:'d.m.Y'}</code></pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -279,6 +300,7 @@ $('#_datetimepicker6').datetimepicker({
|
|||||||
<td></td>
|
<td></td>
|
||||||
<td><pre><code data-language="javascript">{maxDate:0,}
|
<td><pre><code data-language="javascript">{maxDate:0,}
|
||||||
{maxDate:'2013/12/03'}
|
{maxDate:'2013/12/03'}
|
||||||
|
{maxDate:'+1970/01/02'} // tommorrow
|
||||||
{maxDate:'05.12.2013',formatDate:'d.m.Y'}</code></pre></td>
|
{maxDate:'05.12.2013',formatDate:'d.m.Y'}</code></pre></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user