Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSharpieOne committed Aug 31, 2015
1 parent 5fd8378 commit 92bcbd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LinqToQuerystring/TreeNodes/DataTypes/DateTimeNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ public override Expression BuildLinqExpression(IQueryable query, Expression expr
{
var dateText = this.Text
.Replace("datetime'", string.Empty)
.Replace("'", string.Empty)
.Replace(".", ":");
.Replace("'", string.Empty);

return Expression.Constant(DateTime.Parse(dateText, null, DateTimeStyles.RoundtripKind));
}
}
}
}

0 comments on commit 92bcbd0

Please sign in to comment.