domain .tw idv.tw .com.tw
你正在閱覽 :: 繁體中文:: 學習 ASP SQL VB HTML code

學習 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在閱覽 :: 繁體中文 Chinese_Traditional

學習.主題:
首頁
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
»date
»DateAdd
»datediff
»FormatDateTime
»intDay
»now
»Order-by-Time
»WeekDay
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....學習.教學 > ASP > time »

w3 learning

ASP

Time

:: now

More detial or script code example

display server now time clock

顯示伺服主機的現在時間
Description:

display server clock time read time shows month/daye/year hour:minute:second AM or PM

讀取主機的時間
月/日/年 時:分:秒 上午或下午
now

ASP

Time

:: datediff

More detial or script code example

time different between 2 time

兩個時間差 datediff
Description:

Datediff("how_to_count",oldTime,newTime) how to count :h,m,n,q,ww,w,yyyy,y,s,d h=hour m=month q=quarter y=which date of a year yyyy=which year d=which date of a month n=minute s=second ww=which week of a yeay w=which day of a week

類似 dateadd
datediff

ASP

Time

:: DateAdd

More detial or script code example

add time , Search by Date, Search by Time, Month

DateAdd 計時差 可為+可為-
Description:

DateAdd("m",1,now) month plus +1 from now yyyy - Year q - Quarter m - Month y - Day of year d - Day w - Weekday ww - Week of year h - Hour n - Minute s - Second similar to datediff

類似 datediff
DateAdd

ASP

Time

:: date

More detial or script code example

read the server clock: month/date/year

讀取電腦伺服器的[ 月/日/年 ]資料
Description:

server time : display month/date/year

印出電腦伺服器的[ 月/日/年 ]資料
date

ASP

Time

:: WeekDay

More detial or script code example

WeekDayName(WeekDay(DATE))=“Wednesday”

檢查今天是不是星期三 (一星期的第四日)
Description:

weekday() Sunday as the first day of a week WeekDayName(WeekDay(date)) Monday as the first dat of a week ex: WeekDayName(WeekDay(date,vbWednesday))

注意函數weekday()
為設定一個星期的第一天是星期日
WeekDayName(WeekDay(date))

為設定一個星期的第一天是星期一
例: WeekDayName(WeekDay(date,vbWednesday))
WeekDay

ASP

Time

:: intDay

More detial or script code example

Week date time property ; function WeekDayName (intDay)

自己設定星期幾的對應回應名稱
Description:

if intDay=1 then
      WeekDayName1 = "星期日"
  elseif intDay=2 then
      WeekDayName1 = "星期一"
  elseif intDay=3 then
      WeekDayName1 = "星期二"
  elseif intDay=4 then
      WeekDayName1 = "星期三"
  elseif intDay=5 then
      WeekDayName1 = "星期四"
  elseif intDay=6 then
      WeekDayName1="星期五"
  elseif intDay=7 then
      WeekDayName1 = "星期六"
  end if
intDay

ASP

Time

:: FormatDateTime

More detial or script code example

<%= FormatDateTime(Now(), 0) %>

時間日期函數
Description:

FormatDateTime(Now(), n)

建立欄位時則可選擇
欄位類別 為 [datetime] 長度 8
就可能精確的比時間大小或前後
FormatDateTime

ASP

Time

:: Order-by-Time

More detial or script code example

Order by time

依時序排列
Description:

Order by time DESC Order by time ASC Order by cast(___ as datetime)

Order-by-Time

..
...
...

[ 8/20/2008 ]

www learning school add more scripts and tips memo
You are at >>3WT.EZER.COM >> 3WT.EZER.COM/ASP/TIME/INDEX.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email