I need a date to insert into a database, however even though Im formatting it using 

```
Exportedtime = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")

```

it still shows up as 3/24/2016 09:25:13 AM? So when I go to insert it into the MSSQL database Im getting the error:

```
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.

```

The Database field is a datetime field.

Any ideas?

Thanks