Year(Date) Function

L

ltamisin

Hi

Im working on a Year(Date) function right now, the output of that function
is this "2005", my question is how can i change the format into this "05"

Function: Year(Date)
Output: 2005
Needed Output: 05

Thanks
 
A

Adrienne

Hi

Im working on a Year(Date) function right now, the output of that
function is this "2005", my question is how can i change the format
into this "05"

Function: Year(Date)
Output: 2005
Needed Output: 05


Function Year(Date)
Year = Right(Datepart("yyyy",Date),2)
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top