Hi,

how can I trunc time in EntityFramework?

I tried it this way:

        model.Datas
                            .GroupBy(d => DbFunctions.TruncateTime(d.TimeStamp))
                            .Select(d => d.Key.Value)
                            .ToArray();

But get this error:
        "SQLite error (1): no such function: TruncateTime"

How else can I use the "date(timestring) function in EntityFramework?


Regards Steffen

Reply via email to