cancel
Showing results for 
Search instead for 
Did you mean: 

Display date in capital letter

Former Member
0 Kudos

Hi expert,

i am using the "Interactive Form"

I want to change the format date from "22.Apr.2008" to "22.APR.2008".

At moment i am using the field "date" with Display Pattern "DD.MMM.YYYY".

Could you help me ?

Regards

Antonella

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi,

Just write the following script at exit event of your date field:

$.rawValue = Upper(Format("DD.MMM.YYYY", $.rawValue))

Hope it will solve your problem.

Regards,

Vaibhav Tiwari.

Former Member
0 Kudos

Thanks for your reply ,

The problem is not solved.

I have copied your code into "event exit" but the result is the same( 23.Apr.2008 instead of 23.APR.2008).

Have you some ideas ?

Antonella

chintan_virani
Active Contributor
0 Kudos

Antonella,

Change the language to JavaScript and try this code at the exit event of date field:-

this.rawValue = this.rawValue.toUpperCase();

Chintan

Former Member
0 Kudos

Hi,

I have the same problem, but i have not solved it with your tips.

What's the matter? The code don't change the date that appears like "29.Jul.2008".

Any suggests?

Thx

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think it is better to write a logic.Get the month as per your requirement using FM and concatenate the day,year and month separated by .

Thanks,

Phani Diwakar.

Former Member
0 Kudos

Hi

Type the following in the script:

$.rawValue = Num2Date(Date(), "DD.MMMM.YYYY");

var ind = At($.rawValue, ".");

var day = Left($.rawValue, (ind-1));

var sub = Right($.rawValue,(Len($.rawValue)-ind));

var ind2 = At(sub,".");

var year = Substr(sub,(ind2+1),(Len(sub)-ind2));

ind = ind +1;

var month = Substr(sub,1,(ind2-1));

month = Upper(month);

$.rawValue = Concat(day,".",month,".",year);

Hope this helps!

Regards

Thashin

Edited by: Thoshin Naicker on Jul 31, 2008 9:47 PM