How to test your application to see if your application is prone to Date/Time format issues?

Change regional settings in your computer (or server):

Note: Screenshots are based on Windows7, but steps are almost similar on most Windows based OS.

  1. Go to Control Panel –> Date and Time –> Change the time zone

image

  1. Click Change date and time

image

  1. Click Change calendar settings

image

You get two windows invoked when clicking:

image

  1. Change “Format:

image

  1. Click “Apply” button and close the window.
  2. Test your window/page/module where a date/time functionality is present.

If you get a wrong date/time format then in the “step-4: Format” OR If you get an application exception, then you can confirm that the developer did not follow safe coding practices.