I need output timestamp as 2009-01-09 00:00:00 format, in 24 hour
format

I am forming the result with below row:

strcreatetimestamp = (((DateTime)(datarow.ItemArray
[13])).GetDateTimeFormats()[5] + ((DateTime)(datarow.ItemArray
[13])).GetDateTimeFormats()[110]) ;

but, with this I am getting Something like: 2009-01-09 02:00:00 AM

I guess the incorrect output could be because of culture settings en-
us to use GetDateTimeFormats)[] function, how can i determine which
culture is being used on the server. this is coded inside exe which
runs on a server.

please suggest any possible workaround at this stage without need to
modifying code and get the required output format.

Please correct me if any of above assumptions are incorrect

Thanks in advance.

Reply via email to