[Solved] Suggestion to reduce show/hide code [closed]
[ad_1] Use Class selector instead of Id’s $(“.OF_timepickerall”).show(); $(“.OF_timepickerall”).hide(); [ad_2] solved Suggestion to reduce show/hide code [closed]
[ad_1] Use Class selector instead of Id’s $(“.OF_timepickerall”).show(); $(“.OF_timepickerall”).hide(); [ad_2] solved Suggestion to reduce show/hide code [closed]
[ad_1] Assuming hdndate.Value is actually a string and its value is “28/04/2014”: Replace this: Convert.ToDateTime(hdndate.Value) With this: DateTime.ParseExact(hdndate.Value, “dd/MM/yyyy”, CultureInfo.InvariantCulture); DateTime.ParseExact allows you to specify the exact format of your input string, so that it can correctly generate a DateTime from it. In this case, your format is dd/MM/yyyy. [ad_2] solved String was not recognized … Read more