Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting String to Date in 8.5

Status
Not open for further replies.

davidmo

Technical User
Apr 8, 2003
97
US
I am trying to convert string data into date/time. Not sure how.
 
What format is your string? Is it always in the same format?

Since you didn't specify what the string looks like, it's a little difficult to supply you with an answer.

That being said, essentially what you'll have to do is parse out the information and pass it to one of the DateTime functions, which come in 3 flavors:

DateTime (date, time)
DateTime (YYYY, MM, DD)
DateTime (YYYY, MM, DD, HH, MM, SS)
 
The format of the string is mm/dd/yyyy and it is always the same.
 
OK, then try a formula like this:

DateTime (Date({Table.DateField}), Time (00, 00, 00))

The time portion will be 12:00:00 AM.

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top