Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
system.module
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2004 at 23:34 UTC
Updated:
4 Mar 2007 at 20:20 UTC
There is not standard datashort format, d.m.Y (e.g. 24.12.2004).
Just add new $dateshort type in system.module:
$dateshort =
...
"d.m.Y - H:i" => "d.m.Y - H:i")
Tomas
Comments
Comment #1
tostinni commentedThis is still needed, we don't have any date only format.
Comment #2
forngren commentedStill needed.
Comment #3
gregglesWhat's the use case for this? There is already a short date/time format that is similar. When do you need to show the date without the time?
Also, wouldn't it be better to just add an options in "short date formats" to include this one?
Comment #4
forngren commentedSometimes there's no need to show the exact time, but just a simple date would be nice. I agree with you that it should be added in "short date formats".
Comment #5
Rosamunda commentedI agree with you. There are cases when this stuff is very useful.
Comment #6
greggles"sometimes" and "there are cases" does not make a use case. Without a use case it's impossible to propose a good solution.
Once this format is created, where would these dates be used or not? Is that just up to the theme?
Comment #7
forngren commentedMy global news, for example, don't need an exact timestamp and I think it would look a bit nicer without it.
Acctually, it would be nice if Drupal could support any combination of the PHP date syntax (http://php.net/date).
Comment #8
forngren commentedMarking as dupe of http://drupal.org/node/105039