Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP Date

Reply
Thread Tools

ASP Date

 
 
guest guest@anonymous.com
Guest
Posts: n/a
 
      08-20-2004

I face the problem on datediff function

01 Jan 03 to 28 Feb 05

I would like to get the answer is 2 years and 2 months..

how can i do that
 
Reply With Quote
 
 
 
 
dave
Guest
Posts: n/a
 
      08-20-2004
http://www.aspfaq.com/show.asp?id=2233

dave

>-----Original Message-----
>
>I face the problem on datediff function
>
>01 Jan 03 to 28 Feb 05
>
>I would like to get the answer is 2 years and 2 months..
>
>how can i do that
>.
>

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      08-20-2004
dave wrote on 20 aug 2004 in microsoft.public.inetserver.asp.general:

> http://www.aspfaq.com/show.asp?id=2233
>
> dave
>
>>-----Original Message-----
>>
>>I face the problem on datediff function
>>
>>01 Jan 03 to 28 Feb 05
>>
>>I would like to get the answer is 2 years and 2 months..
>>
>>how can i do that


You are to quick, Dave, if the OQ was ment as:
"I would like to get the answer *in* 2 years and 2 months."



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
inamori
Guest
Posts: n/a
 
      08-20-2004
thanks for your advice

but actually i would like to get the exact day


I face that problems

07/01/2003 06/30/2006 ---------> it should be 3



01/01/2003 02/28/2005 --------->could i get 2 years and 2 months


01/01/2003 03/01/2005 --------->could i get 2 years and 2 months and 1
day


"dave" <(E-Mail Removed)> ???
news:99b701c4867f$12bb2640$(E-Mail Removed) ???...
> http://www.aspfaq.com/show.asp?id=2233
>
> dave
>
> >-----Original Message-----
> >
> >I face the problem on datediff function
> >
> >01 Jan 03 to 28 Feb 05
> >
> >I would like to get the answer is 2 years and 2 months..
> >
> >how can i do that
> >.
> >



 
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
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP General 11 11-08-2003 11:24 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP .Net 1 11-08-2003 09:14 PM
Given a date, how to find the beginning date and ending date of that week Matt C Programming 3 11-08-2003 09:07 PM
Given a date, how to find the beginning date and ending date of that week Matt C++ 2 11-08-2003 08:30 PM



Advertisments