Datetimebox set default seconds and minutes

Source: Internet
Author: User

People who have used Easyui know that in the Datetimebox control, the default time division seconds is the time division seconds, for example, I now click on the interface to retrieve, I choose August 1, in the text box is displayed in the value of 2015-8-1-19:03:58. A time query is a two-time control, a start time, an end time. If you choose today, it is right now and then, but if you start the time you also let the customer choose the current hour of cent by default.

You think, if I want to query is yesterday to today's data, he chose 2015-8-14 19:08:33 such a start query, that 14th number seven points before the data? If you want customers to change the control of the next time in the second, change to 00:00:00, the customer will complain.

I have been on the Internet to check the problem, but did not get the answer, you can also try Baidu, are the time format. But what I want is to set the default time division seconds to 00:00:00. Some people will say, directly to the source code to change, yes, you can change, I have tried, but you changed, all the Datetimebox control is 00:00:00 the time of the second, then you retrieve the end of the condition control, you have become such, this is not required, the end of the control is now the time of the second,

Then we can rewrite his datetimebox method, say so much, I still stickers it.

$ (' #ZJQGL_BJSJ1 '). Datetimebox ({required:false,onshowpanel:function () {$ (this). Datetimebox ("Spinner"). Timespinner ("SetValue", "00:00:00");});
justis a code like this: Said so much nonsense, haha, if a blog post only such a code words, will feel very empty, I prefer the interface at the beginning looks beautiful, full, so it's nonsense, MO Strange

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Datetimebox set default seconds and minutes

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.