Like many other religions, Islam proclaims that ritual fasting is a good thing in the eyes of God (in that case Allah). And of course there are some rules and regulations for it.
As with the prohibition of alcohol however the rules for fasting don't actually meet the standards one could expect of a God.
"O you who believe! Observing As-Sawm (the fasting) is prescribed for you as it was prescribed for those before you, that you may become Al-Muttaqoon (the pious)? [al-Baqarah 2:183]
I don't want to go into all the details about the time for fasting.Lets just say that (read on)