ASP ကျူတိုရီရယ်များ

ASP ပင်မစာမျက်နှာ

WP ကျူတိုရီရယ်

ဝဘ်စာမျက်နှာများ နိဒါန်း ဝဘ်စာမျက်နှာများ သင်တုန်းဓား ဝဘ်စာမျက်နှာများ အပြင်အဆင် ဝဘ်စာမျက်နှာများ ဖိုဒါများ WebPages Global ဝဘ်စာမျက်နှာများ ပုံစံများ ဝဘ်စာမျက်နှာများ အရာဝတ္ထုများ WebPages ဖိုင်များ ဝဘ်စာမျက်နှာများ ဒေတာဘေ့စ်များ ဝဘ်စာမျက်နှာများ အကူအညီပေးသူများ ဝဘ်စာမျက်နှာများ WebGrid ဝဘ်စာမျက်နှာများ ဇယားများ ဝဘ်စာမျက်နှာများ အီးမေးလ် ဝဘ်စာမျက်နှာများ လုံခြုံရေး ဝဘ်စာမျက်နှာများ ထုတ်ဝေခြင်း။ ဝဘ်စာမျက်နှာများ ဥပမာများ WebPages အတန်းများ

ASP.NET Razor

သင်တုန်းမိတ်ဆက် Razor Syntax Razor C# Variables Razor C# ကွင်း သင်တုန်း C# ယုတ္တိဗေဒ Razor VB Variables Razor VB Loops Razor VB Logic

ASP Classic

ASP မိတ်ဆက် ASP Syntax ASP Variables ASP လုပ်ထုံးလုပ်နည်းများ ASP အခြေအနေများ ASP Looping ASP ပုံစံများ ASP Cookies ASP Session ASP လျှောက်လွှာ ASP #ပါဝင်ပါသည်။ ASP Global.asa ASP AJAX ASP အီးမေးလ် ASP ဥပမာများ

ASP အကိုးအကား

ASP VB လုပ်ဆောင်ချက်များ ASP VB သော့ချက်စာလုံးများ ASP တုံ့ပြန်မှု ASP တောင်းဆိုချက် ASP လျှောက်လွှာ ASP Session ASP ဆာဗာ ASP အမှား ASP ဖိုင်စနစ် ASP TextStream ASP Drive ASP ဖိုင် ASP Folder ASP အဘိဓာန် ASP AdRotator ASP BrowserCap ASP အကြောင်းအရာ ချိတ်ဆက်ခြင်း။ ASP အကြောင်းအရာ Rotator ASP အမြန် Ref

ADO ကျူတိုရီရယ်

ADO မိတ်ဆက် ADO ချိတ်ဆက်မှု ADO မှတ်တမ်းအစုံ ADO ရုပ်ထွက် ADO မေးခွန်း ADO အမျိုးအစား ADO ထည့်ပါ။ ADO အပ်ဒိတ် ADO ဖျက်ပါ။ ADO ဒီမို ADO အရှိန်မြှင့်ပါ။

ADO အရာဝတ္ထုများ

ADO Command ADO ချိတ်ဆက်မှု ADO အမှား ADO Field ADO Parameter ADO အိမ်ခြံမြေ ADO မှတ်တမ်း ADO မှတ်တမ်းအစုံ ADO တိုက်ရိုက်ကြည့်ရှုခြင်း။ ADO ဒေတာအမျိုးအစားများ

VBScript DateDiff လုပ်ဆောင်ချက်

❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။

DateDiff လုပ်ဆောင်ချက်သည် ရက်စွဲနှစ်ခုကြားရှိ ကြားကာလအရေအတွက်ကို ပြန်ပေးသည်။

အထားအသို

DateDiff(interval,date1,date2[,firstdayofweek[,firstweekofyear]])
Parameter Description
interval Required. The interval you want to use to calculate the differences between date1 and date2

Can take the following values:

  • yyyy - Year
  • q - Quarter
  • m - Month
  • y - Day of year
  • d - Day
  • w - Weekday
  • ww - Week of year
  • h - Hour
  • n - Minute
  • s - Second
date1,date2 Required. Date expressions. Two dates you want to use in the calculation
firstdayofweek Optional. Specifies the day of the week.

Can take the following values:

  • 0 = vbUseSystemDayOfWeek - Use National Language Support (NLS) API setting
  • 1 = vbSunday - Sunday (default)
  • 2 = vbMonday - Monday
  • 3 = vbTuesday - Tuesday
  • 4 = vbWednesday - Wednesday
  • 5 = vbThursday - Thursday
  • 6 = vbFriday - Friday
  • 7 = vbSaturday - Saturday
firstweekofyear Optional. Specifies the first week of the year.

Can take the following values:

  • 0 = vbUseSystem - Use National Language Support (NLS) API setting
  • 1 = vbFirstJan1 - Start with the week in which January 1 occurs (default)
  • 2 = vbFirstFourDays - Start with the week that has at least four days in the new year
  • 3 = vbFirstFullWeek - Start with the first full week of the new year

ဥပမာများ

ဥပမာ ၁

ဇန်နဝါရီလ 31 2009 နှင့် 31 2010 ခုနှစ် ဇန်နဝါရီလ အကြား ကွာခြားချက်-

<%

fromDate="31-Jan-09 00:00:00"
toDate="31-Jan-10 23:59:00"
response.write(DateDiff("yyyy",fromDate,toDate) & "<br />")
response.write(DateDiff("q",fromDate,toDate) & "<br />")
response.write(DateDiff("m",fromDate,toDate) & "<br />")
response.write(DateDiff("y",fromDate,toDate) & "<br />")
response.write(DateDiff("d",fromDate,toDate) & "<br />")
response.write(DateDiff("w",fromDate,toDate) & "<br />")
response.write(DateDiff("ww",fromDate,toDate) & "<br />")
response.write(DateDiff("h",fromDate,toDate) & "<br />")
response.write(DateDiff("n",fromDate,toDate) & "<br />")
response.write(DateDiff("s",fromDate,toDate) & "<br />")

%>

အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-

1
4
12
365
365
52
53
8783
527039
31622340

ဥပမာ ၂


ဒီဇင်ဘာလ 31 2009 မှ ဒီဇင်ဘာ 31 2012 ကြားတွင် ရက်သတ္တပတ်မည်မျှ (တနင်္လာနေ့)၊

<%

fromDate=CDate("2009/12/31")
toDate=CDate("2012/12/31")
response.write(DateDiff("w",fromDate,toDate,vbMonday))

%>

အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-

156

❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။