I'm trying to get the current time via DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss")
However, this is spitting out a time 12 hours off of what we want.
For example:
What it spits out: 11/14/2011 2:24:56 am
What we want: 11/14/2011 2:24:56 pm
What noob mistake are we making?
Any help is greatly appreciated :)
11/14/2011 2:24:56 am
) is very different from what I would expect the format string you posted (yyyy-MM-dd hh:mm:ss
) to produce. Are you sure about this?