The switch statement of getting date not working

The switch statement of getting date from system is not working…only the default value is printing up… although many times refresed.

Call karne ke liye nambar nhi h kors ke liye kese pta kare daut puchhne ke liye