"Evertjan." <> wrote in message
news:Xns953E64970D1A0eejj99@194.109.133.29...
>
> Usually I also allow for YY, the . and the /, so:
>
> function myISOdate(d)
> d = trim(d)
> d = replace(d,".","-")
> d = replace(d,"/","-")
> a = Split(d,"-")
> if len(a(2))=2 then a(2) = "20" & a(2)
> myISOdate = a(2) & "-" & a(1) & "-" & a(0)
> end function
Hmmm, thats a good idea, except for if the user enters something like
"20/01/60" in which 60 become 2060 insted of 1960.
But I will incorporate that change, thanks.