Setting Alarms on Android
Setting alarms on Android using the AlarmManager is not straightforward for .Net folk because the alarm Date/Time is not expressed by something similar to the .Net DateTime structure but rather by a value of type “long” that represents the time, in milliseconds, since the Unix epoch (January 1, 1970 @ 00:00:00 UTC). So to convert a local DateTime member to AlarmManager milliseconds use the following code: