Bootstrap-datetimepicker Time Plugin Use

Source: Internet
Author: User
Tags html header

HTML header introduces the relevant JS and CSS

<link rel= "stylesheet" type= "Text/css" href= "css/bootstrap-datetimepicker.css"/><script src= "js/ Bootstrap-datetimepicker.js "></script><script src=" Js/locales/bootstrap-datetimepicker.zh-cn.js " ></script>

Time Call and bootstrap icon, bootstrap version: V3

<div class= "Input-group date form_datetime" >          <input style= "Background-color: #FFFFFF" name= "StartTime" Type= "text" class= "Form-control" placeholder= "click Get Start Date" readonly= "readonly" >          <span class= " Input-group-addon "><span class=" Glyphicon glyphicon-th "></span></span></div><div class= "Input-group date form_datetime" >          <input style= "Background-color: #FFFFFF" name= "Endtime" type= "text "Class=" Form-control "placeholder=" Click Get End Date "readonly=" readonly ">          <span class=" Input-group-addon "> <span class= "Glyphicon glyphicon-th" ></span></span></div>

Control Date JS:

/* Date Call */$ (". Form_datetime"). DateTimePicker ({       format: "Yyyy-mm-dd",        //picktime:false,       autoclose:true ,       Todaybtn:true,minview: "Month",       Maxview: "Decade", Language: "ZH-CN",       pickerposition: "Bottom-left"       })

Bootstrap-datetimepicker Time Plugin Use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.