Reply to thread

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


Top Bottom