How to change Date & Time settings for Android & iOS Simulator?

Is there a way to change the Settings for Date & Time on the Simulator in Android & iOS?

Did you find any solution?
If i want to change date of ios simulator.

On Android I was able to create a method and change the time on the emulator/device.

On iOS I did not find a reliable solution, I ended up changing the time on my laptop which then changed the Simulator time to match it.

Hi JD, Can you share me code snippets to change time zone in android using appium.

can you give me that methods which you applied on the emulator

@JD, can you write here how you write this method on Android?