Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Problems with the field Date

$
0
0

Using Silverstripe version 2.4 ==== ===

I created a date field in my file artista.php

<? php
class Artist extends DataObject
  {
public static $ db = array (
"BirthDate" => "Date"
);

From the CMS insert the date in the following format (mm / dd / yyyy), but just saved, the system transforms me the date (dd / mmm / yyyy) while in my template/html I display the date in the following format (yyyy / mm / gg)
I would like to unify all formats (dd / mm / yyyy)

In summary:
input into the CMS = 19/04/2014
after saving visulaizzo = 19/apr/2014
the template / html = 2014/04/19

Thank you all in advance for the help that you will give me
Have a nice day
MG


Posted to: Problems with the field Date | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles