在asp网页中隐藏未来日期 [英] Hiding future date in asp web page
本文介绍了在asp网页中隐藏未来日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我正在使用带有属性textmode = date的文本框。现在我想隐藏未来日期在这个文本框中控制它是如何可能的。
hi
I am using textbox with an property textmode=date. Now I want to hide future date in this text box control how it is possible.
推荐答案
希望这会有所帮助,
< br $> b $ b
http://www.c-sharpcorner.com/Blogs/10848/validation-of-future-date-using-compare-validator-in-Asp-Net.aspx [ ^ ]
http://stackoverflow.com/questions/16114778/how- to-use-a-compare-validator-with-datetime-today-against-textbox-text
hope this will help,
http://www.c-sharpcorner.com/Blogs/10848/validation-of-future-date-using-compare-validator-in-Asp-Net.aspx[^]
http://stackoverflow.com/questions/16114778/how-to-use-a-compare-validator-with-datetime-today-against-textbox-text
你可以这样做。
You can do as follows .
<script type="text/javascript">
(function(){
var date = new Date();
var currentMonth = date.getMonth();
var currentDate = date.getDate();
var currentYear = date.getFullYear();
(function() { var date = new Date(); var currentMonth = date.getMonth(); var currentDate = date.getDate(); var currentYear = date.getFullYear();
这篇关于在asp网页中隐藏未来日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文