Rodney Vinyard - .NET & SQL Developer
When all is said and done, more will be said than done
My Links
Home
Archives
Links
Contact
Syndication
Login
News
Recent Comments
Bakwass, Behuda, Palang tod...
by Ravi
Thanks for your blog post. It helped me.Just wante...
by Daniel
I just came across your blog and reading your beau...
by live cricket
I just came across your blog and reading your beau...
by live cricket
I think we must appreciate those who do something ...
by live cricket
<< Allow only one instance of any MDI child form in your MDI application
|
Home
|
convert xml string to dataset & WriteXmlSchema to string >>
C# Format Date
C# Format Date
_attribute =
" effectiveDate=\""
+
string
.Format(
"dd/MM/yyyy"
, _value).ToString() +
"\""
;
Comments
#
re: C# Format Date
Jeferson Nascimento
Code above is Wrong....
string.Format("{0:dd/MM/yyyy}", _value).ToString();
Posted @ 3/9/2007 7:32 PM
#
re: C# Format Date
ryan(philippines)
this code is very useful.:)
Posted @ 3/25/2007 10:07 PM
#
re: C# Format Date
zahir
the above code is wrong.
you have to use like this:
formateddate=DateTime.Now.ToString("dd / MMM/ YYYY");
or
("dd-MM-yy") or ("dd-MMM-YYYY");
Posted @ 4/3/2008 12:43 AM
#
re: C# Format Date
dkl
Thanks very much
Posted @ 8/14/2008 4:25 AM
#
re: C# Format Date
AL
Thanks a lot for this code and comments. :D
Posted @ 10/6/2008 1:53 PM
#
re: C# Format Date
lotto
DateTime dt = DateTime.Now;
string dateString = String.Format("{0:MM/dd/yyyy}",dt)
Posted @ 2/17/2009 8:26 AM
#
re: C# Format Date
Nripin
Thanks Zahir !!!
Posted @ 7/3/2009 6:41 AM
#
re: C# Format Date
noha
thanks zahir
Posted @ 9/3/2009 6:59 AM
#
re: C# Format Date
Yasir
Thanks, it worked
Posted @ 10/10/2009 4:01 AM
#
re: C# Format Date
Ganesh
string date = string .Format("DD/MMM/YYYY",DateTime.Now);
it will show output value as "DD/MM/YYYY"
Posted @ 12/19/2010 5:53 AM
#
re: C# Format Date
snehal
good code but instead of dd-mm-YYYY
write dd-mm-yy
or dd-mm-yyyy
Posted @ 5/30/2011 7:04 AM
#
re: C# Format Date
mobi001
thanks ...
Posted @ 6/26/2011 11:39 AM
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
Enter the code shown above
Remember Me?