Just use std.datetime.SysTime

brec["mdate"] = Clock.currTime.serializeToBson;
...
auto timestamp = brec["mdata"].deserializeBson!SysTime;