Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: is this string possible to convert to date? Post Reply Post New Topic
Author Message
ansai
Newbie
Newbie
Avatar

Joined: 01 Sep 2009
Location: Philippines
Online Status: Offline
Posts: 11
Quote ansai Replybullet Topic: is this string possible to convert to date?
    Posted: 02 Sep 2009 at 6:52pm
if i have a string of 1256
can it be possible to convert as
Output of: Mon,Tue,Fri,Sat


TIA!
IP IP Logged
Jyothi Yepuri
Senior Member
Senior Member


Joined: 11 May 2009
Location: Australia
Online Status: Offline
Posts: 127
Quote Jyothi Yepuri Replybullet Posted: 02 Sep 2009 at 9:18pm
Try this.
stringvar xyz:='1256';

xyz:=Replace(xyz,'1','Mon,');
xyz:=Replace(xyz,'2','Tue,');
xyz:=Replace(xyz,'3','Wed,');
xyz:=Replace(xyz,'4','Thu,');
xyz:=Replace(xyz,'5','Fri,');
xyz:=Replace(xyz,'6','Sat,');
xyz:=Replace(xyz,'7','Sun,');

left(xyz,length(xyz)-1)

Jyothi
IP IP Logged
ansai
Newbie
Newbie
Avatar

Joined: 01 Sep 2009
Location: Philippines
Online Status: Offline
Posts: 11
Quote ansai Replybullet Posted: 02 Sep 2009 at 10:13pm
Thank you Jyothi
it works! :D
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.