using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Himall.Core.Helper
{
public class DateTimeHelper
{
public static DateTime GetStartDayOfWeeks(int year, int month,int index)
{
if (year < 1600 || year > 9999)
{
return DateTime.MinValue;
}
if (month < 0 || month > 12)
{
return DateTime.MinValue;
}
if(index<1)
{
return DateTime.MinValue;
}