mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
Update exp to sql
This commit is contained in:
@@ -914,7 +914,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return $"CONVERT(varchar(100),convert(datetime,{value}), 121)";
|
return $"CONVERT(varchar(100),convert(datetime,{value}), 121)";
|
||||||
}
|
}
|
||||||
else if (formatString!=null&& formatString.IsInt())
|
else if (IsSqlServer()&&formatString!=null&& formatString.IsInt())
|
||||||
{
|
{
|
||||||
return string.Format("CONVERT(varchar(100),convert(datetime,{0}), {1})", value, formatString);
|
return string.Format("CONVERT(varchar(100),convert(datetime,{0}), {1})", value, formatString);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user