bootstrap框架日期时间 开始日期和结束日期选择
页面表单查询时,常要求要查询一个日期时间段内的数据,若采用bootstrap框架的datetimepicker插件来控制,需要了解怎么个用法:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYsAAAFXCAIAAADcfvWIAAAgAElEQVR4nO2d728jSXrfeecX908YC+S138wM/S9cDgjugiA3h10RTpBckF+OkQTJ+exzBPpsI3Be7YsYNjK+FZYv8krBOjgbi0Ui3tr0rbM7R2q1J42G003OUCNRo1/8IY1EUpQ003lRZLO6u6rZXU8Vu0l+P2hgpGbX08Vm1UdPVfewMg4AAKSVTNIVAAAAKTAUACC9wFAAgPQCQwEA0gsMBQBILzAUACC9wFAAgPQCQwEA0gsMBQBILzAUACC9wFAAgPQCQwEA0gsMBQBILzAUACC9wFAAgPQCQwEA0gsMBQBILzAUACC9wFAAgPQCQwEA0gsMBQBILzAUACC9LL6hGnv7Gz/72//10V9hm7tt42d/29jbxye+PFvwE198Q+0fnJ60zpOuBVDhpHVea7yKWwqf+PwS/MSXwlBJVwGoo2YoEzUBswGGAvMEDLVswFBgnoChlo3lNVQ2m022JkABGGrZCDOUrA9P7dtxO3/weHP6gKHmGhhq2UipodydWQmx4vPAUHMNDLVsSA3lCiJYxt3pU0aISsLlEn3n1JemAkPNNTDUsjHFUOE/BA+OWDY8M9Keo/HAUHMNDLVsiA0lNI7MIOHSCS8bElAYMyRIRGCouQaGWjYEhpJ13XBDhR+pbKgo+2MBQ801MNSyIc2hQjIXvm/7fg7JekLyIKKh+LBTgaHmmqChSnn2+ecKjdGOwvgnBgw110wf5U01VFAQUbIq2U7f/iijPBhqefAbqpTPlxzHcZxGITdqI6MdLjDUXEM1FL8nPIeKElltfyxgqLkGo7xlQ0MO5chVEhIk5HgYCsiAoZaNMEPJRk9CcQgTKDdCMKuaGlAYU3Y8RnlLAgy1bMR42iDir+F7YhlKBgy1tMBQywbVUBFHeeEQDRULGGqugaGWjbBnyoXDK9loK3yUJ0N4TEiRKDHDgaHmGhh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aqicYKoS5N9QwkEaFSIrPpxinY04AiI/bftwW5eZNIXpCAhWdxTGUTFI+T/GqYrYCgA5rTq6YfG4K0RMMFc4iGGoYKik3mWKeYqpybcU7CwAF+IbEmhZrZqzJMTdBT8osmqGCkuI95arKtZXLOQDx8bUit3W5eRNzk0xPMNRUFsRQQ5GkhJ5yVcXzGgBVgs3JbWlBN0FPcfn/C2Q6AAehnjEAAAAASUVORK5CYII=" alt="" />
引入js文件
jQuery.min.js
bootstrap.min.js
bootstrap-datetimepicker.min.js
html代码
<input class="input-medium search-query" name="createDatetime_start" value="${createDatetime_start}" type="text" class="form-control" style="width:150px" id="datetimepicker_start" data-date-format="yyyy-mm-dd hh:ii:ss" readonly/>
~ <input class="input-medium search-query" name="createDatetime_end" value="${createDatetime_end}" type="text" class="form-control" style="width:150px" id="datetimepicker_end" data-date-format="yyyy-mm-dd hh:ii:ss" readonly/>
jQuery代码
$('#datetimepicker_start').datetimepicker({
weekStart: 1,
todayBtn: 1,
autoclose: 1,
todayHighlight: 1,
minView:0,
forceParse: 1,
showMeridian: 0
}); $('#datetimepicker_end').datetimepicker({
weekStart : 1,
todayBtn : 1,
autoclose : 1,
todayHighlight : 1,
minView : 0,
forceParse : 1,
showMeridian : 0
}); function getLocalTime(nS) { //转换时间戳为格式 yyyy-mm-dd hh:ss:ii
return new Date((parseInt(nS) + 60 * 60 * 4) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/[\u4e00-\u9fa5]/g, "");
};
$("#datetimepicker_start").on("changeDate",
function(e) {
$('#datetimepicker_end').datetimepicker('setStartDate',
getLocalTime(e.date.valueOf() / 1000));
});
$("#datetimepicker_end").on("changeDate",
function(e) {
$('#datetimepicker_start').datetimepicker('setEndDate',
getLocalTime(e.date.valueOf() / 1000));
});
以上只是在使用过程中的处理,有不妥之处,望留言,共同讨论,O(∩_∩)O谢谢...
bootstrap框架日期时间 开始日期和结束日期选择的更多相关文章
- PHP获取日期对应星期、一周日期、星期开始与结束日期的方法
本文实例讲述了PHP获取日期对应星期.一周日期.星期开始与结束日期的方法.分享给大家供大家参考,具体如下: /* * 获取日期对应的星期 * 参数$date为输入的日期数据,格式如:2018-6-22 ...
- Android日期时间选择器DatePicker、TimePicker日期时间改变事件响应(Android学习笔记)
activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android&qu ...
- my97datepicker开始日期小于结束日期格式化时间精确届时分秒
my97datepicker开始日期小于结束日期格式化时间精确到时分秒 一 , 需求: 结束时间 > 开始时间, 不符合的时间段不能选择.比如我选择开始日期是7月28,那结束的日期将只能从7月2 ...
- 日期时间JS插件
首先要引入基本文件:bootstrap的基本js和css文件,因为用到了jquery所以要引入jquery文件 <script src="jquery-1.11.2.min.js&qu ...
- DateHelper.cs日期时间操作辅助类C#
//==================================================================== //** Copyright © classbao.com ...
- 结束日期必须大于开始日期--My97DatePicker日历控制的又一方便之处
在做时间查询时,有时需要两个日期,从一个日期到另外一个日期的那种,但是这样会有一个问题,比如后者的结束日期晚于开始日期怎么办?用JS写验证,麻烦,呵呵,用这个日历控件,可方便实现结束日期只显示开始日期 ...
- Java 8 日期时间API
Java 8一个新增的重要特性就是引入了新的时间和日期API,它们被包含在java.time包中.借助新的时间和日期API可以以更简洁的方法处理时间和日期; 在介绍本篇文章内容之前,我们先来讨论Jav ...
- LocalDateTime与字符串互转/Date互转/LocalDate互转/指定日期/时间比较
Java 8中表示日期和时间的类有多个,主要的有: Instant:表示时刻,不直接对应年月日信息,需要通过时区转换 LocalDateTime: 表示与时区无关的日期和时间信息,不直接对应时刻,需要 ...
- 【转】JAVA 8 日期/时间(Date Time)API指南
前言 本来想写下Java 8的日期/时间API,发现已经有篇不错的文章了,那就直接转载吧~ PS:主要内容没变,做了部分修改. 原文链接: journaldev 翻译: ImportNew.com - ...
- 调用DEDE日期时间格式整理大全
dedecms 日期时间格式大全,大家可以根据需要选择.DEDECMS利用strftime()函数格式化时间的所有参数详解,包括年份日期进制.小时格式等,大家收藏吧,呵. 日期时间格式 (利用strf ...
随机推荐
- DML过程中记录错误日志
当你插入几百万数据时,由于有几条脏数据而导致插入失败,是不是很恼火.10g R2之后有个新功能.将插入过程中失败的记录插入到还有一张表中. SQL> drop table test purge; ...
- iOS多线程与网络开发之小文件上传
郝萌主倾心贡献,尊重作者的劳动成果,请勿转载. /** 取得本地文件的MIMEType */ 2 - (void) getMIMEType { 3 // Socket 实现断点上传 4 5 //apa ...
- Source Insight 4.0 破解和使用
参考出处: https://blog.csdn.net/u011604775/article/details/81698062 https://blog.csdn.net/user11223344ab ...
- redis安装报错
错误原因大概是这个: creating server tcp listening socket 127.0.0.1:6379: bind No error 解决方案如下按顺序输入如下命令就可以连接成功 ...
- Linux trace使用入门
概念 trace 顾名思义追踪信息,可通俗理解为一种高级打印机制,用于debug,实现追踪kernel中函数事件的框架.源代码位于:\kernel\trace\trace.c,有兴趣能够研究 撰写不易 ...
- WPF中DATAGRID自定义验证(包含BINDINGGROUP)
DataGrid在Wpf中的应用是十分广泛的,当你需要表中的信息稍详细的显示出来时,或者我们需要进行某些数据输入时,都有可能采用DataGrid.当然对信息的显示,我们不需要进行验证,但当我们将Dat ...
- ASP.NET动态网站制作(6)-- JS(1)
前言:JS的第一节课,在Visual Studio 2013中编写及运行.新建项目->Web->ASP.NET Web应用程序->Empty,打开后在项目下添加新建css文件夹和js ...
- mongodb.py
from chatterbot.storage import StorageAdapter class Query(object): def __init__(self, query={}): sel ...
- 题解 CF576C 【Points on Plane】
题解 CF576C [Points on Plane] 一道很好的思维题. 传送门 我们看这个曼哈顿距离,显然如果有一边是按顺序排列的,显然是最优的,那另一边怎么办呢? 假如你正在\(ioi\)赛场上 ...
- Ubuntu12.04如何修改窗口背景色为眼睛保护色来保护眼睛,强力推荐!!
最近突然发现盯着屏幕看的久了,眼睛会非常的痛苦,因此想改变一下系统的窗口背景颜色.其实看代码主要是在Eclipse里面察看,因此一开始我就想改变Eclipse的文本编辑框的背景颜色,效果如下图所示. ...