PC Review


Reply
Thread Tools Rate Thread

convert timespan to time/datetime...?

 
 
=?Utf-8?B?VmluYXk=?=
Guest
Posts: n/a
 
      4th May 2005
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



 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      4th May 2005
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)

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Vinay" <(E-Mail Removed)> wrote in message
news:0D218A73-E7F7-44E1-8665-(E-Mail Removed)...
> 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
>
>
>


 
Reply With Quote
 
Stephany Young
Guest
Posts: n/a
 
      4th May 2005
What makes you think it is a Tinespan object as opposed to a DateTime
object?


"Vinay" <(E-Mail Removed)> wrote in message
news:0D218A73-E7F7-44E1-8665-(E-Mail Removed)...
> 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
>
>
>



 
Reply With Quote
 
=?Utf-8?B?VmluYXk=?=
Guest
Posts: n/a
 
      4th May 2005
Alex & Young

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

thanks for replying.



"Stephany Young" wrote:

> What makes you think it is a Tinespan object as opposed to a DateTime
> object?
>
>
> "Vinay" <(E-Mail Removed)> wrote in message
> news:0D218A73-E7F7-44E1-8665-(E-Mail Removed)...
> > 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
> >
> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add timespan to datetime Lars Schouw Microsoft C# .NET 3 22nd May 2007 11:17 AM
How do I convert a DateTime table column to a TimeSpan or DayOfWeek ? Harry Haller Microsoft ASP .NET 0 21st Jul 2005 12:35 PM
DateTime difference using TimeSpan =?Utf-8?B?TGFycnkgQmlyZA==?= Microsoft VB .NET 5 18th Aug 2004 07:45 PM
DateTime / TimeSpan Greater Than 23:59:59 =?Utf-8?B?SmVmZiBTaGFudHo=?= Microsoft C# .NET 2 2nd Jul 2004 05:29 PM
How do I convert a DateTime to another time zone? =?Utf-8?B?TGFycnkgRkFB?= Microsoft Dot NET 4 29th Mar 2004 12:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 AM.