Skip to content
Loading
  
  •   
  • @section Scripts  
  •     {  
  •     "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js">  
  •     "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js">  
  •     "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js">  
  •     "https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js">  
  •   
  •     "stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">  
  •     "stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/css/bootstrap-datetimepicker.min.css">  
  •       
  • } 
  •  
    +1
  • Rijwan Ansari
    +2
    Use simple html5 input control with type date as shown:
     
    1. "date" id="dateInput" name="datepicker">  
    example:
    https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_date 
    +2
  • +1
    Hi, you need Ajax Toolkit.
     
    https://docs.microsoft.com/en-us/aspnet/web-forms/overview/ajax-control-toolkit/getting-started/get-started-with-the-ajax-control-toolkit-cs
     
    Drag a textbox to you project then you will see an arrow in the top right of it which says Add Extender.
     
    Add the Calender.
     
    After doing that format the date as you wish.
     
    +1
  • Satya Karki
    +1
    Hi,
    use input control with type=date
     
    https://www.w3schools.com/tags/att_input_type_date.asp
    +1