• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to convert a string to date

 
Greenhorn
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?

tks
reply
    Bookmark Topic Watch Topic
  • New Topic