惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
爱范儿
爱范儿
Blog — PlanetScale
Blog — PlanetScale
The GitHub Blog
The GitHub Blog
C
Check Point Blog
小众软件
小众软件
I
InfoQ
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
腾讯CDC
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
B
Blog
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
D
Docker
博客园 - 司徒正美
博客园_首页
Recent Announcements
Recent Announcements
D
DataBreaches.Net
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
GbyAI
GbyAI
Jina AI
Jina AI
V
V2EX
Vercel News
Vercel News
IT之家
IT之家
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
NISL@THU
NISL@THU
V
Visual Studio Blog
C
Cybersecurity and Infrastructure Security Agency CISA

博客园 - joyous jeny

Log4Net advanced pattern tips SQLServer的TDE加密 Forrest Gump frontend learning site JDK JRE区别 用户中心 - 博客园 用户中心 - 博客园 用户中心 - 博客园 转:jQuery设计思想 marked ASP.NET 页面对象模型 3种方法从Html中取文本 图片的存取 WebResource - joyous jeny - 博客园 让DropDownlist显示ToolTip(两部分) - joyous jeny - 博客园 Tech tips(回发、显示名称、DataView过滤前10条记录) - joyous jeny ASP脚本里加事务 Make a mark of Gates .net 20 callback example 导出Datagrid里所有数据到excel - joyous jeny - 博客园
比较经典的日期判断 - joyous jeny - 博客园
joyous jeny · 2008-02-20 · via 博客园 - joyous jeny

                <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ClientValidate"
                        Display="Dynamic" ErrorMessage="起始日期不能大于结束日期" ForeColor="Red"></asp:CustomValidator>
<script type="text/javascript" language="javascript">
    function  ClientValidate(sender, args)
    {
      var flag = false;
      var controlid = sender.id.substr(0,sender.id.length-("CustomValidator1").length);
      var startDate =  document.getElementById(controlid+"startDate").value;
      var endDate =  document.getElementById(controlid+"endDate").value;

     if(GetDate(startDate) <= GetDate(endDate) )
        return true;
      if (flag)
        args.IsValid = true;
      else
        args.IsValid = false;
    }
    function GetDate(inputdate)
    {
        var posyear = inputdate.indexOf('年');
        var posmonth = inputdate.indexOf('月');
        var posday = inputdate.indexOf('日');
       var year = inputdate.substr(0,4);
     var month = inputdate.substr(posyear+1,2);
     var day = inputdate.substr(posmonth+1,2);
        var date = new Date(year, month, day);
        return date;
    }
    </script>