MS Access DateAdd() လုပ်ဆောင်ချက်
ဥပမာ
သတ်မှတ်ထားသောရက်စွဲတစ်ခုသို့ နှစ်နှစ်ထည့်ပါ-
SELECT DateAdd("yyyy", 2, #22/11/2017#);
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
DateAdd() လုပ်ဆောင်ချက်သည် ရက်စွဲတစ်ခုသို့ အချိန်/ရက်စွဲကြားကာလကို ပေါင်းထည့်ပြီးနောက် ရက်စွဲကို ပြန်ပေးသည်။
အထားအသို
DateAdd(interval, number, date)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
interval | Required. The time/date interval to add. Can be one of the following values:
|
number | Required. The number of interval to add to date. Can be positive (to get dates in the future) or negative (to get dates in the past) |
date | Required. The date to which the interval should be added |
နည်းပညာဆိုင်ရာအသေးစိတ်
အလုပ်လုပ်သည်- | Access 2000 မှ |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
လက်ရှိစနစ်ရက်စွဲသို့ တစ်နှစ်ထည့်ပါ-
SELECT DateAdd("yyyy", 1, Date());
ဥပမာ
ဝန်ထမ်းများ၏ မွေးနေ့တွင် 6 လ ထည့်ပါ-
SELECT LastName, DateAdd("m", 6, BirthDate) FROM Employees;