Skip to main content

Date picker in asp.net !!!


Date Picker Using Bootstrap and ASP.net

<html>
<head>
<title>Date Picker Using Bootstrap and ASP.net</title>
<link href="../bootstrap-3.3.7-dist/bootstrap-datepicker/css/bootstrap-datepicker.css" rel="stylesheet" type="text/css" />
</head>
     <body>
                <form ID="Form1" runat="server">
                <div class="col-md-4 col-xs-6 col-xs-offset-3 col-md-offset-0">
                    <div class="form-group">
                        <div class="has-feedback">          
                            <asp:TextBox ID="txtMeetingDate" CssClass="form-control"                                   runat="server"></asp:TextBox>
                            <span class="form-control-feedback fa fa-1x fa-calendar"></span>
                 
                        </div>
                    </div>
                 </div>
</form>
            
     
    <script src="bootstrap-3.3.7-dist/js/jquery-3.1.1.min.js" type="text/javascript"></script>
   <script src="bootstrap-3.3.7-dist/bootstrap-datepicker/js/bootstrap-datepicker.js"
type="text/javascript"></script>
    <script type="text/javascript">
    var date = new Date();
    var today = new Date(date.getFullYear(), date.getMonth(), date.getDate());
    $( '#<%=txtMeetingDate.ClientID%>').datepicker({
        autoclose: true,
        todayHighlight: true,
        startDate: today,
        format: "dd/mm/yyyy"
    });
    </script>
<body>
</html>




Bootstrap Date Picker File Download Link:
https://bootstrap-datepicker.readthedocs.io/en/latest/

Comments

  1. This Post is Really Helpful..

    ReplyDelete
  2. Nice Blog!!
    Xantatech is one of the best UX/UI service provider. We incorporate user experience (UX) design and development activities at every stage of your product life cycle aiming improvement in end-user experience.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to get Reverse Of a number in C# ?

Reverse of a positive integer integer  number in c#  Program : using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Reverse {     class Program     {         static void Main( string [] args)         {             int num, rem, rev = 0;             Console .WriteLine( "//How to get Reverse of a number in c# ?" );             Console .WriteLine( "Enter A number :" );             num = Convert .ToInt32( Console .ReadLine());             if (num > 0)     ...

How to find sum of the digits of a number in c#?

Sum of the Digits of a number Program: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 {     class Program     {         static void Main( string [] args)         {             int num, sum = 0;             Console .WriteLine( "Enter a number :\n" );             num = Convert .ToInt32( Console .ReadLine());             if (num > 0)             {                 for ( int temp = num; tem...

How to check a number Prime or not in c# ?

/*Check a number Prime or not in C# */ Program : using  System; using  System.Collections.Generic; using  System.Linq; using  System.Text; using  System.Threading.Tasks; namespace  Primenumber {      class   Program     {          static   void  Main( string [] args)         {              int  num, flag = 0;              Console .WriteLine( "Enter A number :" );             num =  Convert .ToInt32( Console .ReadLine());              if  (num > 0)             {  ...