Hi,
I need to store current date in datebase. I am using mongodb but let me know in sqlserver.
DateTime dt = DateTime.Today; >>>>>>> {4/22/2014 12:00:00 AM}
BsonDocument biddd = new BsonDocument();
biddd.Add("name", "bakkupavankumar");
biddd.Add("village", "bakkupeta");
biddd.Add("date", dt);
But after added it to BsonDocument >>>>>>>>>>>>> { "name" : "baks", "village" : "newcity", "date" : ISODate("2014-04-21T18:30:00Z") }
A day variation in date. How to do this?
How can i save current date in db?
Go to the complete details ...