ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Custom Dates (VBA) (https://www.excelbanter.com/excel-programming/315234-custom-dates-vba.html)

Bill Agee

Custom Dates (VBA)
 
I am trying to convert a date, 4/10/2004, to just Apr 04.

Is there a way to do this with the Format command?

I tried

mydate=Format(mm/dd/yyyy,"mmm yy")

but this doesn't work.



Frank Kabel

Custom Dates (VBA)
 
mydate=Format(date,"mmm yy")

--
Regards
Frank Kabel
Frankfurt, Germany


Bill Agee wrote:
I am trying to convert a date, 4/10/2004, to just Apr 04.

Is there a way to do this with the Format command?

I tried

mydate=Format(mm/dd/yyyy,"mmm yy")

but this doesn't work.



All times are GMT +1. The time now is 03:12 PM.

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