Skip to content

Commit 9a53501

Browse files
committed
fix code samples formatting
1 parent 2b9a20d commit 9a53501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/working-with-dates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Most applications can use the default string representation for DateTime for the
2626

2727
For example, the following snippet stores an `Order` object containing two DateTime properties - `ShipDate` and `OrderDate` as a document using the .NET SDK:
2828

29-
```dotnet
29+
```csharp
3030
public class Order
3131
{
3232
[JsonProperty(PropertyName="id")]
@@ -63,7 +63,7 @@ Alternatively, you can store DateTimes as Unix timestamps, that is, as a number
6363

6464
The SQL .NET SDK automatically supports querying data stored in Azure Cosmos DB via LINQ. For example, the following snippet shows a LINQ query that filters orders that were shipped in the last three days:
6565

66-
```dotnet
66+
```csharp
6767
IQueryable<Order> orders = container.GetItemLinqQueryable<Order>(allowSynchronousQueryExecution: true).Where(o => o.ShipDate >= DateTime.UtcNow.AddDays(-3));
6868
```
6969

0 commit comments

Comments
 (0)