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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top