{"id":12078,"date":"2011-11-05T15:40:46","date_gmt":"2011-11-05T15:40:46","guid":{"rendered":"http:\/\/www.learnexcelmacro.com\/?p=271"},"modified":"2011-11-05T15:40:46","modified_gmt":"2011-11-05T15:40:46","slug":"date-add-function","status":"publish","type":"post","link":"https:\/\/vmlogger.com\/excel\/2011\/11\/date-add-function\/","title":{"rendered":"DateAdd() Function"},"content":{"rendered":"
DateAdd() Function<\/span><\/strong> Syntax : <\/strong><\/p>\n DateAdd ( interval , number, date ) <\/span><\/p>\n Interval :<\/span><\/em> Number:<\/span><\/em> Date:<\/span><\/em> <\/p>\n Example: <\/strong><\/p>\n You can use the DateAdd<\/strong> function to add or subtract a specified time interval from a date. For example, you can use DateAdd<\/strong> to calculate a date 2 Months from today or a time 30 minutes from now.<\/p>\n The DateAdd<\/strong> function won’t return an invalid date. The following example adds one month to January 31:<\/p>\n In this case, DateAdd<\/strong> returns 02-Jan-95.<\/p>\n<\/span>","protected":false},"excerpt":{"rendered":" DateAdd() Function This function returns a date value based on adding an interval of time. It will be more clear by going through the following<\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1672,1673],"tags":[],"class_list":["post-12078","post","type-post","status-publish","format-standard","hentry","category-excel-formula","category-excel-functions"],"yoast_head":"\n
\nThis function returns a date value based on adding an interval of time. It will be more clear by going through the following examples.<\/p>\n
\nThis is a required argument. This is a string expression which specify the interval type but not the quantity. For example, Minute, second, hour, day etc. Below table has all the possible Interval types.<\/p>\n
\nThis is a required argument. This is the number of interval we want to add in the date time. This can be positive or negative. For future dates, positive and for past dates, negative values.<\/p>\n
\nThis is a required argument. This is date in which you want to add that interval.<\/p>\n\n\n
\n Interval<\/th>\n Description<\/th>\n<\/tr>\n \n yyyy<\/td>\n Year<\/td>\n<\/tr>\n \n q<\/td>\n Quarter<\/td>\n<\/tr>\n \n m<\/td>\n Month<\/td>\n<\/tr>\n \n y<\/td>\n Day of year (same as Day)<\/td>\n<\/tr>\n \n d<\/td>\n Day<\/td>\n<\/tr>\n \n w<\/td>\n Weekday (same as Day)<\/td>\n<\/tr>\n \n ww<\/td>\n Week<\/td>\n<\/tr>\n \n h<\/td>\n Hour<\/td>\n<\/tr>\n \n n<\/td>\n Minute<\/td>\n<\/tr>\n \n s<\/td>\n Second<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n