Re: Newbie: How to extract year from a Date object



I found that VB6 does not prevent you from using Year as a variable, and
hence, some developers think it doesn't work.


"Jeff Johnson [MVP: VB]" <i.get@xxxxxxxxxxx> wrote in message
news:%23lSce1fvFHA.3764@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Newbie" <steve@xxxxxxxx> wrote in message
> news:GpVXe.812$hW.755@xxxxxxxxxx
>
>> I have (had) the following problem which i worked around but i would
>> still like to find an answer.
>>
>> if myDate is e.g. : #02/04/1998# how do i extract the year ?
>>
>> Year(myDate) is only for VBA.
>
> Since when?
>


.



Relevant Pages

  • changing Default cell margins left in Word 2000 Table
    ... How do I access the Default cell margins Left properties in word 2000 tables ... in VBA (VB6) ... Prev by Date: ...
    (microsoft.public.word.vba.general)
  • Re: Making a form "modal" ?
    ... VBA ... How can I set this attribute in a regular VB6 form? ... Rick ... Prev by Date: ...
    (microsoft.public.vb.enterprise)
  • Re: VBA to VB.Net
    ... > I have an Access application using vba. ... No easy way to VB6 that I've ever heard of; for VB.Net you'd need to ask in ... VB.Net: "Fool me once..." ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Looping through Labels
    ... in VB6 you can use lblMachine.caption but doesn't seem to work in ... VBA! ... gti_jobert's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=30634 ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: Shame on you!
    ... I've often said that you can run a virus on the network, ... here) and have found the transition from VB6 to VB.Net pretty smooth and C# ... Multithreading is still a guessing game for many developers. ... nothing to do with the language, ...
    (microsoft.public.vb.general.discussion)