TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

Uppercase on formated dates

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: Seb
Date: 2013-07-16
Time: 13:35

Uppercase on formated dates


Am I wrong or it is impossible to apply operations on formated dates?

I'm doing
[domain.date;ope=upper;frm='(locale)dddd dd mmmm yyyy']
but I still get the date in lowercase.

If it's impossible, how can I achieve this an other way?

By: Skrol29
Date: 2013-07-17
Time: 14:53

Re: Uppercase on formated dates


Your snippet cannot work because "ope" is processed before "frm".
See http://www.tinybutstrong.com/manual.php#html_field_prm_order

But you can use a custom function for formatting as you wish.
See parameter "onformat".
By: Seb
Date: 2013-07-17
Time: 16:47

Re: Uppercase on formated dates

OK, I'll try this, thank you!