Click here to Skip to main content
12,297,982 members (54,164 online)
Click here to Skip to main content

Tagged as



why this is giving me wrong output

, 23 Nov 2012 CPOL
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.



Compare Revision Minor Date Status Editor
2 - 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


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


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.

You may also be interested in...

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