convert timespan to time/datetime...?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I am using a pocket pc with cf 1.0 for my appl.
I have backend of ASA (ultralite) ....
now i need get the value form one of the time field ( i have datset for this)

myds.Tables(0).Rows(lctr).Item("From_time")...

this when i debug , the framework seems to be converted this, to a timespan
object

can anybody tell me how to convert a timespan object to a DateTime object. i
need to show this as string in text box.

any help is greatly appreciated.

rgds,
Vinay
 
I'm not sure if this is what you need, but to convert timespan to the date
that has time part equal to timespan you can use new
DateTime(timespan.Ticks)
 
What makes you think it is a Tinespan object as opposed to a DateTime
object?
 
Alex & Young

Sorry i had some data problem which was irritating ... now i coorected that...
may be the question is irrelevent...

thanks for replying.
 
Back
Top