domokane / FinancePy

A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.
GNU General Public License v3.0
2.16k stars 322 forks source link

Allow create Date from datetime.date #148

Closed PaleNeutron closed 2 years ago

PaleNeutron commented 2 years ago

Converting datetime to Date is a very common usage scenario, and a function, similar to from_string, should be provided to accomplish this requirement.

domokane commented 2 years ago

This is a very helpful addition. Thanks D

PaleNeutron commented 2 years ago

@domokane PR is closed not merged, is it a mistake?

domokane commented 2 years ago

I thought I merged it. Done now.