By Justin on Monday, 27 April 2015
Posted in General
Replies 5
Likes 0
Views 846
Votes 0
Not sure if this is even possible, but I'd like the date and time to output similar to how facebook outputs theirs - something like:

Wednesday, April 30 at 2:15 PM

In the language override I create a new rule for the 'COM_EASYSOCIAL_DATE_DMY12H' constant - its value being:

l, F j \a\t g:i A

For some reason, the 't' in the word 'at' isn't displaying. I'm stumped at to why that would be the case.

Thanks in advance to anyone that can find a solution!
Hello Justin,

Does the 'a' appear at all? Try using double "\\" instead of a single "\" . I do know that if you use \t, it would then mean tab but not really sure about \a though.
·
Tuesday, 28 April 2015 00:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks for your reply. the 'a' appears, but even with the '\\t', no luck. I think it must be a weird thing with Joomla. Using a 't' by itself show without the '\' results in '30' as the output. I appreciate your input!

Justin
·
Tuesday, 28 April 2015 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

Unfortunately it is not possible to add character string inside the date format. The only possible way is to separate the date format string into two and insert the character string in between the date format. Other than that it is not possible
·
Tuesday, 28 April 2015 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
No worries Ezrul. Thanks for checking.
·
Tuesday, 28 April 2015 21:02
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Justin
·
Tuesday, 28 April 2015 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post