cancel
Showing results for 
Search instead for 
Did you mean: 

dropping a comma from a string variable

Former Member
0 Kudos

Hi,
I would appreciate your help please in dropping a comma

I've created a string variable in the "Variable Editor" which goes like this:

        =Year([due_date])+"-"+"Q"+Quarter([due_date])

        *[due_date] is a date variable


I was wondering how can I drop a comma from year segment of the result

instead      2,016-Q4

to receive  2016-Q4


Thank You



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try the following formula: =FormatNumber(Year([due_date);"#") +"-"+"Q"+Quarter([due_date])

Didier

Former Member
0 Kudos

thank you so much

Answers (1)

Answers (1)

vinita_kasliwal
Active Contributor
0 Kudos

HI Devteam

Try to do this :

REPLACE ALL OCCURENCE of lc_comma in lv_string with space and see if it helps

Regards

Vinita

Former Member
0 Kudos

Hi Vinita,

I am not sure I understood what you meant.
And Didier MAZOUE comment really helped.


Thank you for your reply


vinita_kasliwal
Active Contributor
0 Kudos

haha ok I meant this ..

REPLACE ALL OCCURENCE of ',' in '2,016-Q4'  with space.