Forum Xamarin Xamarin.Forms

How to compare date and time picker returned arguments with DateTime.utcNow value ?

gowtham800gowtham800 Member
edited April 2019 in Xamarin.Forms

I am creating a forms app where user enters values and submits them to a list. Each value is submitted to the list along with the date and time of submission using "note.Date = DateTime.UtcNow;" The entries are saved locally in the phone. Now I want to be able to retrieve only those entries that the user wants to view by selecting Date, start time and end time. All the values in the list that were submitted on the chosen date and time in between the picked start time and end time should be presented to the user.

I don't know how to compare the date and time picker arguments with DateTime.utcNow value. Any leads?

Answers

Sign In or Register to comment.