DateTimeSpan
Comments
-
Hi Elena,
Generally, if you are selecting Date fields from the database, you can just use syntax like:
DateTimeSpan.days(row["ORDERDATE"],row["SHIPPEDDATE"])
...but if you are working with String dates and need to do some conversion, then remember that the DateTimeSpan.days method takes Date Objects... like the example below.
var mydate1 = new Date("11/18/2007");
var mydate2 = new Date("12/04/2007");
DateTimeSpan.days(mydate1,mydate2);Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management