You may have been thinking of Lent, which is the 40 day period before Easter, more traditionally associated with fasting in Christian countries.
"Fasting" these days doesn't always have religious connotations, though it does mean some form of self-denial (denying your appetites) for a good reason. If the reason was just to lose weight, the more common word would be "diet" (noun and verb).