Hi

included in a vba-module I need to find out when a certain file is modified.
I use the code:

date1 = Format("file.doc".datelastmodified, "mmmm yyyy")

the variable is now giving the date 'Maj 2005' in danish as my Windows is in
Danish.

I need to translate this date into different languages: English 'January
2005', Swedish 'Januari 2005' etc. How can I do this in vba?

Re: language and 'format' by Jezebel

Jezebel
Tue May 10 17:03:10 CDT 2005

Dim pDate as date
Dim pMonth as long

pDate = Doc.DateLastModified
pMonth = Month(pDate)

English = Choose(pMonth, "January", "February", ...) & " " & Year(pDate)



"Chris" <Chris@discussions.microsoft.com> wrote in message
news:1A297E5C-D034-4928-9211-731938107538@microsoft.com...
> Hi
>
> included in a vba-module I need to find out when a certain file is
> modified.
> I use the code:
>
> date1 = Format("file.doc".datelastmodified, "mmmm yyyy")
>
> the variable is now giving the date 'Maj 2005' in danish as my Windows is
> in
> Danish.
>
> I need to translate this date into different languages: English 'January
> 2005', Swedish 'Januari 2005' etc. How can I do this in vba?
>