GeeCON Prague 2014*
The moose likes Java Micro Edition and the fly likes Manipulation Date Time In RMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Manipulation Date Time In RMS" Watch "Manipulation Date Time In RMS" New topic
Author

Manipulation Date Time In RMS

aan isnaini
Greenhorn

Joined: Oct 22, 2005
Posts: 11
Dear All,
How to manipulation date time format in RMS?
i mean, i would like to save Date Time format into RMS then afteward in other command action will be open the Record store and compare with current date from system.
1. How to save DateTime format in RMS?
2. How to Read DateTime format saved in RMS?
3. How to compare DateTime format (readed from RMS) with current date time( from device system).

Thank You
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
You can serialize/unserialize dates by using a conversion to "long" ie

1. Use "long l = dateObj.getTime();" to extract a "long" from a Date object.
2. Use "long longVar= ... ; Date d = new Date(longVar);" to build a Date object from a "long" variable.


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Manipulation Date Time In RMS