uuhm..
I have another problem. I need to convert a TimePicker (Windows Phone 7) Value to a unix timestamp..
How is this possible?
Thanks!
uuhm..
I have another problem. I need to convert a TimePicker (Windows Phone 7) Value to a unix timestamp..
How is this possible?
Thanks!
This should work:
DateTime selectedTime = ((DateTime) TimePicker.Value)
public static double ConvertToUnix (DateTime selDate)
{
var unixStart = new DateTime (1970, 1, 1).ToLocalTime();
return (selDate - unixStart).TotalSeconds;
}