<%=DATEDIFF ("mi",rstop("run_time"),now())%>rstop("run_time")是从数据库中取得时间,怎么运行不了呢?

解决方案 »

  1.   

    有什么具体的例子么?为什么我<%=DATEDIFF ("mi",rstop("run_time"),now())%>不行呢?运行不了呢?
      

  2.   

    DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]])
    The DateDiff function syntax has these parts:[interval]
    Required. String expression that is the interval you want to use to calculate the differences between date1 and date2. See Settings section for values. 
    The interval argument can have the following values:Setting Description 
    yyyy Year 
    q Quarter 
    m Month 
    y Day of year 
    d Day 
    w Weekday 
    ww Week of year 
    h Hour 
    n Minute 
    s Second 
      

  3.   

    <%=DATEDIFF ("mi",rstop("run_time"),now())%>DATEDIFF ("h","2004-10-28 10:00:00","2004-10-28 12:00:00")
    结果是2你这里面的"mi"是什么啊
    应该是下面这些当中某一个啊
    The interval argument can have the following values:Setting Description 
    yyyy Year 
    q Quarter 
    m Month 
    y Day of year 
    d Day 
    w Weekday 
    ww Week of year 
    h Hour 
    n Minute 
    s Second 
      

  4.   

    DATEDIFF ("h","2004-10-28 10:00:00","2004-10-28 12:00:00")
    这个不是例子吗???
    DATEDIFF (返回类型,开始时间,结束时间)
    这样写还看不明白?????