Method AddMilliseconds
AddMilliseconds(DateTime, double, string)
Adds a value in milliseconds to a DateTime taking a timezone into consideration.
public static DateTime AddMilliseconds(this DateTime @this, double value, string timezone)
Parameters
this
DateTimeThe original DateTime.
value
doubleThe value to be added.
timezone
stringThe timezone.
Returns
- DateTime
The resulting DateTime.
Remarks
See the server documentation for $dateAdd for information on timezones in MongoDB.