Skip to main content
Capitalization, punctuation, ellipsis
Source Link
Book Of Zeus
  • 49.9k
  • 18
  • 176
  • 171

I am using MongoDB and C# 4.0. In MongoDB I store CreatedOn as a DateTime, for example "2011-01-01T01:40:45.041Z". In C# I am using MongoDB drivers, so how can I query the database for a particular day? So far i have done as below...

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector); 

Thanks for the help.

I am using MongoDB and C# 4.0. In MongoDB I store CreatedOn as a DateTime, for example "2011-01-01T01:40:45.041Z". In C# I am using MongoDB drivers, so how can I query the database for a particular day? So far i have done as below...

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector); 

Thanks for the help.

I am using MongoDB and C# 4.0. In MongoDB I store CreatedOn as a DateTime, for example "2011-01-01T01:40:45.041Z". In C# I am using MongoDB drivers, so how can I query the database for a particular day? So far i have done as below...

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector); 

Thanks

How to Query MongodbMongoDB date time in C#?

Using mongodbI am using MongoDB and C# 4.0. In mongodb iMongoDB I store CreatedOn as datetimea DateTime, for example "2011-01-01T01:40:45.041Z" in. In C# iI am using mongodbMongoDB drivers, so how can iI query the database for a particular day. so? So far i have done as below  . Thanks for the help..

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector); 

Thanks for the help.

How to Query Mongodb date time in C#?

Using mongodb and C# 4.0 In mongodb i store CreatedOn as datetime for example "2011-01-01T01:40:45.041Z" in C# i am using mongodb drivers so how can i query database for a particular day. so far i have done as below  . Thanks for the help.

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector); 

How to Query MongoDB date time in C#?

I am using MongoDB and C# 4.0. In MongoDB I store CreatedOn as a DateTime, for example "2011-01-01T01:40:45.041Z". In C# I am using MongoDB drivers, so how can I query the database for a particular day? So far i have done as below...

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector); 

Thanks for the help.

Source Link

How to Query Mongodb date time in C#?

Using mongodb and C# 4.0 In mongodb i store CreatedOn as datetime for example "2011-01-01T01:40:45.041Z" in C# i am using mongodb drivers so how can i query database for a particular day. so far i have done as below . Thanks for the help.

var fileLogCollection = db.GetCollection<FileLog>(); Document selector = new Document(); selector["CreatedOn"] =dateTimePicker1.Value.Date; var all = fileLogCollection.Find(selector);