Aug 13, 2007 #1 MartUK MIS Jul 25, 2007 31 GB I am using CR XI I have a string field relating to time 8 characters long wich I need to convert to time eg 07181244 left({FSCACT.FSCACT_CREATE_TIME},4) gives 0718 which I need to convert to 07:18:00. How can I do this please?
I am using CR XI I have a string field relating to time 8 characters long wich I need to convert to time eg 07181244 left({FSCACT.FSCACT_CREATE_TIME},4) gives 0718 which I need to convert to 07:18:00. How can I do this please?
Aug 13, 2007 1 #2 lbass Technical User Feb 9, 2002 32,816 US Use: time(val(left({table.string},2)),val(mid({table.string},3,2)),val(mid({table.string},5,2))) Or if you want to show seconds as zero, use: time(val(left({table.string},2)),val(mid({table.string},3,2)),0) -LB Upvote 0 Downvote
Use: time(val(left({table.string},2)),val(mid({table.string},3,2)),val(mid({table.string},5,2))) Or if you want to show seconds as zero, use: time(val(left({table.string},2)),val(mid({table.string},3,2)),0) -LB
Aug 13, 2007 Thread starter #3 MartUK MIS Jul 25, 2007 31 GB thanks this worked great Upvote 0 Downvote