Help - need to extract year from a short date field

humph

Registered User.
Local time
Today, 00:29
Joined
Sep 7, 2006
Messages
69
Hi folks - I saw a thread last week re how to extract the year from the date field possibly using date serial but can't find it can anyone help - it is probably very simple but i can't get it to work.

Ta

Humph
 
Right(txtDate,4) should do the trick.

where it's 4 digits from the Right side? get it?
10/13/2006 would then equal 2006
 

Users who are viewing this thread

Back
Top Bottom