![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to get maximum date? Topic Summary: Created On: 7-Oct-2003 17:46 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Does anybody have a routine which will return the maximum date from a date attribute? I have an attribute called "Date Test Ran" against a test case number
TC1 Date Test Ran = 2 September 2003 TC2 Date Test Ran = 3 December 2003 I would like the latest date returned for TC1 Any help would much be appreciated Janet |
|
![]() |
|
![]() |
|
You can get a "Maximum Date" from Madam FooFoo's (or Lance's Escorts), but it costs a lot.
I don't understand. Date attributes have only one value, the current value. Anyway, are you asking ... [] How do I compare dates? if (TC1 > TC2) Max = TC1;else Max = TC2; where TC1, TC2, and Max are all "Date" variables. [] How do I get the latest test date for all my objects? Date Latest = null for obj in mod do { DateO = obj.DateAttr if (DateO > Lastest) Latest = DateO } - Louie |
|
![]() |
|
![]() |
|
Louie: thanks! This works great.
Janet Ma |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How to get maximum date?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.