DateTimePicker
Date and time:
<% DateTime1.DateTimePicker(new DateTimePickerOpt { Value = DateTime.UtcNow }); %>
<awe:ocon runat="server" id="DateTime1" />
Date:
<% Date.DatePicker(new DatePickerOpt { Value = new DateTime(2017, 11, 1) }); %>
<awe:ocon runat="server" id="Date" />
Date range:
<% DateRange1.DatePicker(new DatePickerOpt { Placeholder = "select range", SelectRange = true }); %>
<awe:ocon runat="server" id="DateRange1" />
Inline Calendar
Date inline:
<% DateInline.DatePicker(new DatePickerOpt { InlineCalendar = true }); %>
<awe:ocon runat="server" id="DateInline" />
Min, max, default date, clear button
Date:
<% Date3.DatePicker(
new DatePickerOpt
{
NumberOfMonths = 2,
MinDate = DateTime.Now.AddDays(1),
MaxDate = DateTime.Now.AddMonths(7),
DefaultDate = DateTime.Now.AddDays(4),
ClearBtn = true
}); %>
<awe:ocon runat="server" id="Date3" />
Date range
From:
To:
<% DateRange1.DatePicker(new DatePickerOpt { Placeholder = "select range", SelectRange = true }); %>
<awe:ocon runat="server" id="DateRange1" />
Right to left
<div class="einput" style="direction: rtl;">
<% Date4.DatePicker(); %>
<awe:ocon runat="server" id="Date4" />
</div>
TimePicker
<% Tmp1.TimePicker(new TimePickerOpt { }); %>
<awe:ocon runat="server" id="Tmp1" />
Comments