Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2me: Convert String to Date

 
Sangeeta Vepa
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I stored a date from a datefield in rms. I had to convert it to a string to save it in the rms. Now, to put it back to the datefield to view i need to convert the string from rms back to date.
import java.text.*; doesn't work (it cannot be imported).
Thanks
Sangeeta
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can convert the date to milliseconds (a long value) and save it to the RMS. You can reconstruct the sate from the milliseconds when you read it off from the RMS
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic