/// <summary> /// Provide the MarkitSurface object for a certain Date. /// </summary> public MarkitSurface this[QLNet.Date valuationDate] { get { DateTime valuationDateTime = new DateTime(valuationDate.serialNumber()); return(Get(valuationDateTime)); } }
/// <summary> /// Provide the MarkitSurface object for a certain Date. /// </summary> public MarkitSurface this[QLNet.Date valuationDate] { get { DateTime valuationDateTime = valuationDate.ToDateTime(); if (valuationDateTime > formatChangeDate) { _isNewFileFormat = true; } return(Get(valuationDateTime)); } }
/// <summary> /// Returns a (new) corresponding DateTime from Date. /// </summary> public static DateTime ToDateTime(this QLNet.Date myDate) { return(new DateTime(myDate.year(), myDate.month(), myDate.Day)); }