codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  two dates  Archive Import (diego) at 01:11 on Thursday, June 19, 2003
 

Good day!

i would like to ask, how to compute the no. of days from 2 dates. For example,
1/17/2003 - 1/19/2003. in this sample, the answer is 3 days starting from 17.
Pls help!
thanks,
liway

  Re: two dates  Archive Import (david) at 12:46 on Friday, June 20, 2003
 

it`s
datediff("d",date1,date2)

you can change "d" for "m" (months) or "yyyy" (years)

  Re: two dates  Elain at 14:19 on Tuesday, November 09, 2010
 

Thank you for your good answer!
--------------------------------------------
flash menu | drop down menu | flash decompiler mac









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: open excel file in html page
•  Re: Connection Problem help needed
•  Re: Open Excel in HTML page
•  Re: losing session between servlets
•  Re: Modifying Excel files
•  Re: insert picture into email
•  Join DZone Q&A webcast with Chris Hostetter
•  delete a lots of records
•  Re: add 6 working days


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010