It is currently May 2nd, 2024, 10:27 am

Day Number substitue stopped working

Get help with creating, editing & fixing problems with skins
tkolman
Posts: 23
Joined: November 11th, 2009, 1:03 pm

Day Number substitue stopped working

Post by tkolman »

substitution for day number quit working with two digit day number... what am I doing wrong?

Code: Select all

[MeasureDay]
Measure=Time
Format=%#d
Substitute="1":"1st","2":"2nd","3":"3rd","4":"4th","5":"5th","6":"6th","7":"7th","8":"8th","9":"9th","10":"10th","11":"11th","12":"12th","13":"13th","14":"14th","15":"15th","16":"16th","17":"17th","18":"18th","19":"19th","20":"20th","21":"21st","22":"22nd","23":"23rd","24":"24th","25":"25th","26":"26th","27":"27th","28":"28th","29":"29th","30":"30th","31":"31st"
:(
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Day Number substitue stopped working

Post by Mordasius »

You are substituting the '1' in '10' with "1st". Try using Format=%d to keep the leading zero and then modifying the substitute line:

Code: Select all

[MeasureDay]
Measure=Time
Format=%d
Substitute="01":"1st","02":"2nd","03":"3rd","04":"4th","05":"5th","06":"6th","07":"7th","08":"8th","09":"9th","10":"10th","11":"11th","12":"12th","13":"13th","14":"14th","15":"15th","16":"16th","17":"17th","18":"18th","19":"19th","20":"20th","21":"21st","22":"22nd","23":"23rd","24":"24th","25":"25th","26":"26th","27":"27th","28":"28th","29":"29th","30":"30th","31":"31st"
Last edited by Mordasius on July 10th, 2012, 12:13 pm, edited 1 time in total.
tkolman
Posts: 23
Joined: November 11th, 2009, 1:03 pm

Re: Day Number substitue stopped working

Post by tkolman »

:D Thanks ! worked