Gemalto is now part of the Thales Group, find out more.

You are here

ESH5T Terminals - Current DateTime

Durgesh Patel

December 10, 2014 - 12:23pm, 2267 views

Hello,

I have ESH5T terminals. I write program to read data from another device.

In my projectI required current Date & Time and M write below code in java to get current datetime.

    "Date myDate = new Date();"

 --- returns "2004-01-01 00:00:10"

But it's return wrong datetime. I think it return factory date time of the terminal.

Also m try to set current datetime using AT command but when terminal power on/off then it's reset datetime to factory datetime.

So is there any way to set cuttent date time on terminal.

Or

Any way to get inserted SIM card carriar network tower datetime and set to terminal.

Please help me.