Does fasting creates righteousness?
The answer is yes and no. There is no righteousness in it if the mind is on food whole day and the eye is on wall clock. If fasting is done out of fear of being caught eating or to show it off to others there is no righteousness in it.
But ‘IF’ someone accepts fasting as a command in Quran and is done to fulfil this command there is righteousness in it. Righteousness is about bowing to the command, regardless of whether you beat wife or children because of troubling empty stomach.