subtracting DateTime fields in a DataColumn expression

  • Thread starter Thread starter Jon Fairchild
  • Start date Start date
J

Jon Fairchild

I would like to substract two DateTime fields in a DataColumn
expression, like so:

TIME_RESTORED - TIME_OUTAGE

Apparently, this is not allowed, as I get the error "Cannot perform
'-' operation on System.DateTime and System.DateTime."

Any ideas on how to make this work?

Thanks,
Jon
 
Hi Jon:

I tried doing this for a while today, someone posted a similar question. I
can't find a function in the documentation and I tried every trick I know
and I get the same error. I'm still working on it though.. hopefully MS
will chime in, I'm really interested in seeing the answer b/c I think I've
tried everything under the sun and I thought I knew to expression syntax
inside and out - I guess not..
If I figure it out though, I'll let you know.

Hopefully David S or Bill V are reading tonight ;-)
 
Back
Top