Skip to content

Commit 3a64923

Browse files
committed
changed date to day
1 parent 84bc53d commit 3a64923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/MongoDB/Util/JsonFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static string SerializeForServerSide(object value)
4444
if (value is DateTime)
4545
{
4646
DateTime d = (DateTime)value;
47-
sb.AppendFormat("new Date({0},{1},{2},{3},{4},{5},{6})", d.Year, d.Month, d.Date, d.Hour, d.Minute, d.Second, d.Millisecond);
47+
sb.AppendFormat("new Date({0},{1},{2},{3},{4},{5},{6})", d.Year, d.Month, d.Day, d.Hour, d.Minute, d.Second, d.Millisecond);
4848
}
4949
else
5050
SerializeType(value, sb);

0 commit comments

Comments
 (0)