My97DatePicker(WdatePicker)日付コントロールの使用法



My97datepicker Date Control Usage



WdatePicker[html] view plain copy print? General call (if you want to display the date icon at the end of the text box, you can set )


The icon triggers (only the click icon will pop up the date selection box)


Forbidden to empty (that is, after the user selects the date, you can't delete or empty it directly by pressing the detele key in the text box, you can only re-select the date)


Customize the first day of the week (4.6 new: set Monday as the first day of the week)


Custom date display format (here set to yyyy-MM-dd HH:mm, this is the same as Java, you can also set other such as 'yyyy year MM month')


Double-month calendar function (4.6 new: two-month calendar can be popped up at the same time)


Limited date range is 2013-09-14 to 2013-9-20


Restricted date range from September 2013 to October 2013


Limit date range is 10:00:20 to 14:30:00


The date range is limited to 2013-9-14 10:30 to 2013-9-15 16:40


Only select the date before today (including today)


You can only choose the date after today (not including today) (the operation expression of My97DatePicker is used here)


You can only select the first day to the last day of the month's date


Only choose the date from 10:20 today to 14:28 tomorrow


You can only select dates from 20 hours to 30 hours later (the operation expression of My97DatePicker is used here)


The date after is greater than the previous date, and both dates cannot be greater than 2020-10-01
To

The date behind is at least 3 days larger than the previous date
To

Disable Saturday and Sunday


Disable the 5th, 15th, and 25th of each month ('5$' means ending with 5)


Disable all dates earlier than 2000-01-01 ('^19' means start with 19, use minDate to achieve similar functions, here is mainly to demonstrate the use of ^)


Separate the available dates of the month into five paragraphs, which are: 1-3, 8-10, 16-24, 26, 27, 29 to the end of the month


Separate the available dates of the month into five segments, namely: 1-3, 8-10, 16-24, 26, 27, 29 to the end of the month, and disable each Monday, Wednesday, and Saturday.


Disable all hours in the previous hour and the next hour (when you click the date input box, you will find that the previous hour and the next hour of the current time are gray)


Can only choose dates within 7 days (including today)
Note: Suppose the user first selects the following date as the day after tomorrow, and then selects the previous date, at which time the previous date allows to select the 5 days before today. Note: This is for future editing purposes (for example, the dates are the start and end dates of an event, and the user has the right to come back to modify the date after the event is posted)
To

[html] view plain copy print? General call (if you want to display the date icon at the end of the text box, you can set )


The icon triggers (only the click icon will pop up the date selection box)


Forbidden to empty (that is, after the user selects the date, you can't delete or empty it directly by pressing the detele key in the text box, you can only re-select the date)


Customize the first day of the week (4.6 new: set Monday as the first day of the week)


Custom date display format (here set to yyyy-MM-dd HH:mm, this is the same as Java, you can also set other such as 'yyyy year MM month')


Double-month calendar function (4.6 new: two-month calendar can be popped up at the same time)


Limited date range is 2013-09-14 to 2013-9-20


Restricted date range from September 2013 to October 2013


Limit date range is 10:00:20 to 14:30:00


The date range is limited to 2013-9-14 10:30 to 2013-9-15 16:40


Only select the date before today (including today)


You can only choose the date after today (not including today) (the operation expression of My97DatePicker is used here)


You can only select the first day to the last day of the month's date


Only choose the date from 10:20 today to 14:28 tomorrow


You can only select dates from 20 hours to 30 hours later (the operation expression of My97DatePicker is used here)


The date after is greater than the previous date, and both dates cannot be greater than 2020-10-01
To

The date behind is at least 3 days larger than the previous date
To

Disable Saturday and Sunday


Disable the 5th, 15th, and 25th of each month ('5$' means ending with 5)


Disable all dates earlier than 2000-01-01 ('^19' means start with 19, use minDate to achieve similar functions, here is mainly to demonstrate the use of ^)


Separate the available dates of the month into five paragraphs, which are: 1-3, 8-10, 16-24, 26, 27, 29 to the end of the month


Separate the available dates of the month into five segments, namely: 1-3, 8-10, 16-24, 26, 27, 29 to the end of the month, and disable each Monday, Wednesday, and Saturday.


Disable all hours in the previous hour and the next hour (when you click the date input box, you will find that the previous hour and the next hour of the current time are gray)


Can only choose dates within 7 days (including today)
Note: Suppose the user first selects the following date as the day after tomorrow, and then selects the previous date, at which time the previous date allows to select the 5 days before today. Note: This is for future editing purposes (for example, the dates are the start and end dates of an event, and the user has the right to come back to modify the date after the event is posted)
To

転載: https://blog.csdn.net/zqg4919/article/details/74719699