Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8971997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:06:15+00:00 2026-06-15T18:06:15+00:00

I have this code in my theme. $vandaag = the_date(‘M d. Y’); echo ucfirst($vandaag);

  • 0

I have this code in my theme.

$vandaag = the_date('M d. Y');
echo ucfirst($vandaag);

The output is still “okt 11. 2012”
I have the settings for wordpress in dutch, where apparently it doesn’t capitalize the month. Any ideas why this doesn’t work and still echos a lowercase month?

EDIT: I am using an English installation of wordpress, but have a plugin installed that changes the name of the month to dutch. This only works for the_date() and not when I use get_the_date(). This is what limited me to using the_date().

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:06:17+00:00Added an answer on June 15, 2026 at 6:06 pm
    $vandaag = the_date('M d. Y', '', '', FALSE);
    echo ucfirst($vandaag);
    
    • https://codex.wordpress.org/Function_Reference/the_date

    It will otherwise echo the value, setting the 4th argument to false will return instead.

    Both get_the_date() and the_date() are correct depending on what you are wanting to do. Your preference really. Check out the documentation for both to decide what better fits your current usage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is function.php of a wordpress theme that NOD32 says this code have a
I have this code I need apply a theme to a Cacel Button present
I have this php code from a wordpress theme <?php .... $image_source = bloginfo('template_url').'/timthumb.php?src='.$slider_images[$i].'&w=940&h=400&zc=1';
I'm playing around with a custom theme for Wordpress and I have this code
unordered_map<std::string, std::string>* Accounts; I have this code up there to initialize from a pointer,
I have already have this code to force these URLs to HTTPS: RewriteCond %{HTTPS}
I have this code so far which perfectly but relies on there being a
I have this code which will include template.php file from inside each of these
I have this code to download a file, but on sourceforge.net sever there is
For example we have this line chart at Google Code API there is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.