Date date = ISODate.parseISODate("0409141751", System.currentTimeMillis(), TimeZone.getTimeZone("IRDT"));
System.out.println(date);
date = ISODate.parseISODate("0410141751", System.currentTimeMillis(), TimeZone.getTimeZone("IRDT"));
System.out.println(date);
Sat Apr 09 19:47:51 IST 2022
Sat Apr 10 19:47:51 IST 2021
Date date = ISODate.parseISODate("0409141751", System.currentTimeMillis(), TimeZone.getDefault());
System.out.println(date);
date = ISODate.parseISODate("0410141751", System.currentTimeMillis(), TimeZone.getDefault());
System.out.println(date);
Sat Apr 09 14:17:51 IST 2022
Sun Apr 10 14:17:51 IST 2022
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/I5nDqmJQTBM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/97d6f5e2-460d-4a94-aebb-66ce5b4ebb3en%40googlegroups.com.