VBScript DateSerial လုပ်ဆောင်ချက်
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။DateSerial လုပ်ဆောင်ချက်သည် သတ်မှတ်ထားသော နှစ်၊ လနှင့် နေ့အတွက် အမျိုးအစားခွဲရက်စွဲတစ်မျိုးကို ပြန်ပေးသည်။
အထားအသို
DateSerial(year,month,day)
Parameter | Description |
---|---|
year | Required. A number between 100 and 9999, or a numeric expression. Values between 0 and 99 are interpreted as the years 19001999. For all other year arguments, use a complete four-digit year |
month | Required. Any numeric expression |
day | Required. Any numeric expression |
ဥပမာများ
ဥပမာ ၁
<%
response.write(DateSerial(2010,2,3))
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
2/3/2010
ဥပမာ ၂
10 ရက်နုတ်:
<%
response.write(DateSerial(2010,2,3-10))
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
1/24/2010
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။