DateAdd Function
একটি প্রদত্ত তারিখে কয়েকবার তারিখের বিরতী সংযোজন করা হয় এবং ফলাফলের তারিখ প্রদান করে।
সিনট্যাক্স:
DateAdd (Add, Count, Date)
প্রদান মান:
তারিখ ধারণকারী একটি ভেরিয়েন্ট।
প্যারামিটার:
Add - A string expression from the following table, specifying the date interval.
সংযোজন (স্ট্রিং মান) |
ব্যাখ্যা |
yyyy |
বছর |
q |
চতুর্থাংশ |
m |
মাস |
y |
বছরের দিন |
w |
কর্মদিবস |
ww |
বছরের সপ্তাহ |
d |
দিন |
h |
ঘন্টা |
n |
মিনিট |
s |
সেকেন্ড |
Count - A numerical expression specifying how often the Add interval will be added (Count is positive) or subtracted (Count is negative).
Date - A given date or the name of a Variant variable containing a date. The Add value will be added Count times to this value.
উদাহরণ:
Sub example_dateadd
MsgBox DateAdd("m", 1, "1/31/2004") &" - "& DateAdd("m", 1, "1/31/2005")
End Sub