Click here to Skip to main content
15,908,111 members

Comments by Nripendra Ojha (Top 12 by date)

Nripendra Ojha 21-Jun-13 7:49am View    
Now i will reply u tomorrow, my office time over, i am going to home. Your problem is come due to wrong datatype. it is not big issue or may be, but i know u will must solve it. all the best.
Nripendra Ojha 21-Jun-13 7:41am View    
ok..please pass the value of time in long format at least. like

string mindate = "15/June/2013 11:03:24";
DateTime kd1 = DateTime.Parse(mindate);

then it will must run.
Nripendra Ojha 21-Jun-13 7:07am View    
Then it's my suggestion dear, please never store the value of time in string, use datetime variable every where, every where means every where in client side and server side also. Then i can say no this type of error never will be come. It is wrong technique, u pass the value of time in string. store time in datetime variable and pass that variable.
Nripendra Ojha 21-Jun-13 6:55am View    
Oh my god, u r still facing problem. may u tell me from where u get the value of time for mindate like client system or from server then you please directly store that time in datetime kd1 like

string DformatMin = "dd/MMMM/yyyy hh:mm:ss";
DateTime kd1 =DateTime.Parse(DateTime.Now.ToString(DformatMin));
TextBox1.Text = kd1.ToLongDateString();

or
DateTime kd1 = DateTime.Now;
TextBox1.Text = kd1.ToLongDateString();
Nripendra Ojha 21-Jun-13 6:14am View    
when that was error come, with which line of code.