我需要使用date-fns库从月份名称中获取月份索引号。之前我使用的是moment.js,使用moment.js很简单 moment().month('March').format('M');
// Month name will be variableand I don't want to use static dictionary to get index number <
我将Server 2008与一个C# Windows应用程序结合使用。products表有其他值以及过期日期,我希望在网格中显示ProductID, ProductName, AvailableQuantity, and ExpiryDate,这样我就可以让用户了解在到期日之前到期的项目其目的是只将那些有效期越来越近的产品添加到该网格,即在2个月内到期的产品。我尝试使用TRUNC函数,如下所示:from tblProducts
where Dat