home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
SQLite sorting of DateTime values..... how?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anonymous" data-source="post: 6499"><p>Hi waeberd,</p><p></p><p>I see you already have a solution to the datetime problem but here are some alternatives.</p><p></p><p>I use the Ticks property on DateTime object to retrieve the amount of millisecs since some early date. Ticks can be stored in a long and is very convenient for comparasing. </p><p>To convert Ticks back to DateTime simply pass it as a parameter to the constructor.</p><p></p><p>[code]long millisecs = aTime.Ticks; </p><p>DateTime bTime = new DateTime(millisecs);[/code]</p><p></p><p>In utils of MP there are also some functions to convert DateTime to/from long. This format is used in the TVdatabase and may be considered MP standard i guess.</p><p></p><p>/ Fred</p></blockquote><p></p>
[QUOTE="Anonymous, post: 6499"] Hi waeberd, I see you already have a solution to the datetime problem but here are some alternatives. I use the Ticks property on DateTime object to retrieve the amount of millisecs since some early date. Ticks can be stored in a long and is very convenient for comparasing. To convert Ticks back to DateTime simply pass it as a parameter to the constructor. [code]long millisecs = aTime.Ticks; DateTime bTime = new DateTime(millisecs);[/code] In utils of MP there are also some functions to convert DateTime to/from long. This format is used in the TVdatabase and may be considered MP standard i guess. / Fred [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
SQLite sorting of DateTime values..... how?
Contact us
RSS
Top
Bottom