throws exceptions for Android for canonical date funtions