Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

why this is giving me wrong output

, 23 Nov 2012
In the string conversion of a date, lower case mm returns the minutes. For months, you must use upper case, MM. Your format string should therefore be "MM/dd/yyyy".Happens to me, too.

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 23-Nov-12 11:12 Available Gregory Gadow
Updates in content. 78 changes had been made.
1 No 23-Nov-12 11:10 Available Gregory Gadow

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Gregory Gadow
Software Developer (Senior)
United States United States
Gregory Gadow lives in Seattle, Washington and has been writing code for almost 25 years in more than a dozen programming languages. He works for a mid-size brokerage firm and holds the Series 7 and Series 66 brokerage licenses, but much prefers working as the company's programming department doing VB6, VB.Net, ASP, HTML, XML and SQL.

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 23 Nov 2012
Article Copyright 2012 by Gregory Gadow
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid