使用年份中的年份和日期编号获取日期
get the date by using the year and day number in the year
我有一个函数,我将那一年的年份和日期作为参数,我需要 return 日期。我试过使用 momentjs 但无法获取正确的结果。假设 getDate(2019,1) 应该 return Jan 1, 2019
或 1st Jan 2019
日期格式无关紧要。非常感谢任何帮助。
我有一个函数,我将那一年的年份和日期作为参数,我需要 return 日期。我试过使用 momentjs 但无法获取正确的结果。假设 getDate(2019,1) 应该 return Jan 1, 2019
或 1st Jan 2019
日期格式无关紧要。非常感谢任何帮助。