• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
  • Piet Souris
  • Mikalai Zaikin

how to convert a string to date

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my recordStore has timesheet records stored with fields delimited with "^". a sample record may look like "1^2^time entry desc^1:30^2:30^1/1/2005"

when i pull that record up for editing, i extract the data and get something like 1:30 = start time, 2:30 = end time. now i need to set the dateField inputs on the form to 1:30 and 2:30. because these values are string, and dateField's setDate() method only wants to accept date, i need to convert the strings to date, but how? casting won't work and i can't seem to find an libraries that will do the job.

any ideas?

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic