public static DateTime GetDateTime(NpgsqlConnection conn, int mu_stat_id, int mu_stat_errcode) { string sql = SelectDateTimeSql(mu_stat_id, mu_stat_errcode); return(BaseModel.GetFirstValue <DateTime>(conn, sql, "datetime")); }