0

VB.net 2010

How I want the date: 2012-01-24 11:48:40.000

How I my program is exporting the date: 1/24/2012 11:48:40 AM

currently I am using the sqlreader

myreader.GetDateTime(10) which is giving me the format of 1/24/2012 11:48:40 AM

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by moone009
0

Found the solution!

myreader.GetDateTime(10).ToString("yyyy-MM-dd HH:mm:ss")

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.