Wednesday, April 30, 2014

C# time difference between two times

       DateTime dtFrom = DateTime.Parse("3:00 PM");  
       DateTime dtTo = DateTime.Parse("5:00 PM");  
       DateTime now = DateTime.Now;  
       if ((now>=dtFrom) && now<= dtTo )  
       // Do Something  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...