Change letters for day name

When I use this code the name of the day been writed with a small letter.

get_the_time(strtotime($DateValue)), 
get_the_time('l d.m.Y H:i', $post)

I want the name of the day looking like this: Monday, Sunday, Thursday etc.
Now it look like this monday, sunday

What do I do wrong ?

Topic date-time plugin-development plugins Wordpress

Category Web


In the comments, @vancoder points out that it appears day names are not capitalized in Norwegian. If you require that they be capitalized, you could do something like this:

ucfirst( get_the_date( 'l', $post ) ) . 
get_the_date( ' d.m.Y', $post ) . 
get_the_time( ' H:i', $post );

...using PHP's ucfirst() to force the first character to be uppercased.

(I've also split the date and time to use get_the_date() and get_the_time(), since it seemed semantically cleaner to me that way.)

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.