I need to use
SqlDateTime.Parse(val)
where val is a string such as " 23.3.1992 00:00:00 ".
The string is in European format, that is, day precedes month. However Parse wants "American" format. How I can tell it to use particular datetime format / locale?
Thanks in advance!
DateTimeinstance to pass in to the database? Why use strings at all for this?YYYY-MM-dd HH:mm:ssso2013-05-29 13:38:00then everything will know what it means.