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 6611055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:55:16+00:00 2026-05-25T19:55:16+00:00

I have a very simple question for all of you Drupal experts out there:

  • 0

I have a very simple question for all of you Drupal experts out there:

Suppose I have a module that is a node. I don’t like the default date field so I want to split date and time into 2 different fields. How do I do this?

and Do I have to care about how data is saved or retrieved once I’ve made changes to the node form?

  • 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-05-25T19:55:17+00:00Added an answer on May 25, 2026 at 7:55 pm

    You can do this by creating a custom template. If you know something about how templates work in Drupal than you know you can override the default templates with custom ones. It’s only a matter of finding the right template to override.
    If you’re not sure what template you need to override, I suggest you use this handy module, which will also give hints about possible template candidates: Theme developer (make sure you disable it after you’re finished, because it injects markers and it can break you’re styling).

    Let’s say you’re content type is called ‘article’ and you want to change how the date field is display in a node.

    • go to you’re theme folder (usually /sites/all/themes)
    • clone the node.tpl.php file (don’t directly add you’re changes here, because it will affect all your nodes)
    • name the new file node-article.tpl.php
    • format the new field as you please

    Another approach would be to override the theme function that is responsible for rendering that date field (again, using the Theme developer you can find out what theme function is rendering that field). Assuming the theme function is named something like theme_date($date), you can override the function in your template.php file (usually in /sites/all/themes/your_theme_name. You can always go for theme_date($date) if you’re not sure what name to use.

    I would suggest using the second approach, especially if you just want to split the date. The first approach is more flexible, but is better used if you want to do major changes to the layout and formatting.

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

Sidebar

Related Questions

I have a very simple question. Trying to figure out what is the simplest
I have a very simple question. I have a program that accepts an integer
I have a very simple question....I have multiple jsp files like login.jsp , Registration.jsp
I have a very simple question that's kicking my ass. CUSTNMBR | first_date |
I have a very simple question: In C++, is there an in-built or straightforward
This is going to be a very simple question, I have code that looks
Here's a very simple question. I have an SP that inserts a row into
I have a very simple question I believe. I have a footer.php that I
I have a very simple question, How can I get the POST values from
I have a very simple question. In FB tutorial https://developers.facebook.com/docs/mobile/ios/build/ it starts to login

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.