16,018,353 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
Nripendra Ojha
21-Jun-13 5:31am
View
please first use this
string mindate = "15/06/2013 11:03:24";
DateTime kd1 = DateTime.Parse(mindate);
if it not work then use this
string DformatMin = "dd/MMMM/yyyy hh:mm:ss";
string mindate = "15/06/2013 11:03:24";
DateTime kd1 = DateTime.Parse(mindate);
kd1 =DateTime.Parse(kd1.ToString(DformatMin));
In my project both are running... Give me details of error if error come.
Nripendra Ojha
21-Jun-13 5:03am
View
please wait few min..
Nripendra Ojha
21-Jun-13 4:49am
View
string DformatMin = "dd/MMMM/yyyy HH:mm:ss";
there is again a small mistake in DformatMIn. You use capital H. i am also not notice that sorry for that. for ur knowledge know the meaning of
dd small d is for day
MM capital M for month
yy small y for year
hh small h for hour
mm small m for minute
ss small s for second
please use this code
string DformatMin = "dd/MMMM/yyyy hh:mm:ss";
DATETIME kd1 = DateTime.Parse(Mintime.ToString(DformatMin));
Nripendra Ojha
21-Jun-13 4:34am
View
Nripendra Ojha - 7 mins ago
string DformatMin = "dd/mm/yyyy HH:mm:ss"; please use capital M not small string DformatMin = "dd/MMMM/yyyy HH:mm:ss";
please inform me. if it will not run or run.
Nripendra Ojha
21-Jun-13 4:25am
View
Deleted
string DformatMin = "dd/mm/yyyy HH:mm:ss";
please use capital M not small
string DformatMin = "dd/MMMM/yyyy HH:mm:ss";
Nripendra Ojha
21-Jun-13 2:36am
View
what is 8766 ?
Nripendra Ojha
18-Jun-13 7:15am
View
thanxx.. it's work for me.
Show More