Click here to Skip to main content
15,919,358 members

Comments by f farihin (Top 3 by date)

f farihin 21-Feb-18 17:25pm View    
<asp:TextBox ID="datepicker1" runat="server" data-date-format="dd/mm/yyyy" ReadOnly="True">

$(function () {
$("#datepicker1").datepicker({

autoclose: true,
todayHighlight: true,


}).datepicker('update', new Date());


});
f farihin 21-Feb-18 11:08am View    
@F-ES Sitecore I tried this one but still doesn't work.
string leavefrom = datepicker1.Text;
DateTime.ParseExact(leavefrom, "dd/MM/yyyy", CultureInfo.InvariantCulture);
f farihin 21-Feb-18 7:15am View    
It works now