ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   DateAdd (https://www.excelbanter.com/excel-programming/308235-dateadd.html)

Michael Wise[_7_]

DateAdd
 
Is there any way for format the DateAdd function

Here is what I have which of course does not work

da = DateAdd("d", 30, (Format(Date, "dd-mmm-yy"))

--
Message posted from http://www.ExcelForum.com


Chip Pearson

DateAdd
 
Why do you want to use Format within DateAdd in the first place?
Just use

da = DateAdd("d",30,Now)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Michael Wise "
wrote in message
...
Is there any way for format the DateAdd function

Here is what I have which of course does not work

da = DateAdd("d", 30, (Format(Date, "dd-mmm-yy")))


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com