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
Nanhe SiddiquePosted Feb 20, 2015, 12:10 AM
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
Jignesh TrivediPosted Feb 19, 2015, 11:29 PM
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.
Joginder BangerPosted Feb 19, 2015, 3:30 PM
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