> Dear All,
>           Can anyone please give me some idea to get the no of days
>           between
> two dates like 12-jan-01 and 14-jan-01
>           Please help me.

Since you included ODBC in the subject I assume you get the 
dates from the database ...

Depending on what is the SQL server you might be able to do it 
within SQL

For example in MS SQL Server you have DateDiff() :

        select datediff(day, '2001-01-01', '2002-01-01')

If you want to get the difference within Perl look at the Date::... 
modules at http://search.cpan.org

Jenda

== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to