I have a problem inserting the date in PostgreSQL, I have the following:
parametros.Add("descripcion", this.descripcion);
parametros.Add("fecha", this.fecha);
parametros.Add("estado", this.estado);
Program.da.SqlQuery("insert into schtiempos.sorteo (descripcion, fecha, estado) values (@descripcion, @fecha, @estado) returning id;", parametros);
Date in visual is found as datetime(2017/25/03 00:00:00)
and in PostgreSQL as Timestamp without time zone, but it does not let me save it in the database for the types DateTime
and Timestamp
without time zone, what should I do?