Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Year(Date) Function

Reply
Thread Tools

Year(Date) Function

 
 
ltamisin
Guest
Posts: n/a
 
      05-31-2005
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


 
Reply With Quote
 
 
 
 
Adrienne
Guest
Posts: n/a
 
      05-31-2005
Gazing into my crystal ball I observed "ltamisin" <>
writing in news::

> 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

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
 
Reply With Quote
 
 
 
 
ltamisin
Guest
Posts: n/a
 
      05-31-2005
Hey Adrienne thanks

"Adrienne" <> wrote in message
news:Xns9667CC894EACarbpenyahoocom@207.115.63.158. ..
> Gazing into my crystal ball I observed "ltamisin" <>
> writing in news::
>
> > 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
>
> --
> Adrienne Boswell
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Function versus pointer to function, in context of std::function,huh? Alf P. Steinbach C++ 10 07-27-2011 05:51 AM
Function pointer to void function and int function Giannis Papadopoulos C Programming 5 09-05-2005 09:06 PM
How override ALL function calls? (Is there a "function call function"?) seberino@spawar.navy.mil Python 2 08-01-2005 12:38 PM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM
Passing a C++ object's member function to a C function expecing a function pointer! James Vanns C++ 7 01-21-2004 02:39 AM



Advertisments