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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transform a numeric data to character

Status
Not open for further replies.

lvadmin

MIS
May 5, 2004
28
US
I have:

eventt= val(eventtime) - val(newmtime)

&&at this point eventtime=20040804025040.00

&&i need to get 20040804025040 (.00 cut off) back to eventt2 and in the character format....

&&Can someone please help me with this?
 
This should do the job:

eventt2 = alltrim(str(int(eventtime)))


Rob.
 
or perhaps you mean something like:

eventt2 = TRANSFORM(xx,'@R 9999/99/99 99:99')

Rob.
 
It should read:

eventt2 = TRANSFORM(eventtime,'@R 9999/99/99 99:99')

Rob.
 
Counting the numbers it should be:
eventt2 = TRANSFORM(eventtime,'@R 9999/99/99 99:99.99')

Rob.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top