A
Al
Hi Folks,
I am using Office97. I am trying to "extract" the year from:
MyDate = Format(Date, "dd, ddd mmm yyyy")
Both;
Format(MyDate, "yyyy")
Year(MyDate)
Fail to return the year.
Yet if MyDate = Format(Date, "dd mm yyyy") then both year and format will
work.
Can somebody please tell me what I am missing?
The reason for all this is that have a listbox that is populated with the
seven days from today in it, in format ddd, dd mm yyyy. I need to then
insert the year/weekday/month/day etc into various bookmarks in the
template.
Thanks
-Al
I am using Office97. I am trying to "extract" the year from:
MyDate = Format(Date, "dd, ddd mmm yyyy")
Both;
Format(MyDate, "yyyy")
Year(MyDate)
Fail to return the year.
Yet if MyDate = Format(Date, "dd mm yyyy") then both year and format will
work.
Can somebody please tell me what I am missing?
The reason for all this is that have a listbox that is populated with the
seven days from today in it, in format ddd, dd mm yyyy. I need to then
insert the year/weekday/month/day etc into various bookmarks in the
template.
Thanks
-Al