1- if i want to make get just time without Date from user as 10:30 Pm not 1/1/2015 00:00:00
2- if I Want get time of Start or End Process and search about time Between that two times
if time of start 10:00 am --- time of End 02:00 pm
user will search enter 01:00 pm that between start & end
Loading

Joginder BangerRank #360 · 7K reputationPosted Feb 19, 2015, 10:30 AM EST
Ramadan,
your first solution, get a time like this type DateTime.Now.ToString("HH:mm:ss tt");
second problem you can get the difference like this type.
do stuff here/////
string t1 is the difference of between two application
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 19, 2015, 6:29 PM EST
Hi,
you can use timeofday property in the first case
DateTime d = DateTime.Now;
TimeSpan t = d.TimeOfDay;
In the second case you can use subtract method.
DateTime d = DateTime.Now;
TimeSpan t1 = DateTime.Now.Subtract(d);
hope this will help you.
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted Feb 19, 2015, 7:10 PM EST
for first question use as suggest by joginder Banger and jignesh .
but for second question use this.
aspx code
note - in bin folder add AjaxControlToolkit dll
marked if it help you