Jump to:

23575 Posts in 19402 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » SS_Datetime

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1322 Views
  • Dani
    Community Member
    1 Post

    SS_Datetime Link to this post

    I want to get the current time from the admin panel whenever a new page is added to a pagetype to store in the database.
    Now am using SS_Datetime .And i tried time date also.It s not using to get the current time from user.
    public static $db = array(

           "Date" =>"SS_Datetime"
    This is my code and when i am using this the data type of the date is storing as "Datetime" format.But i need to change the datatype as Timestamp (which is in mysql !). How can i do this. If anyone help for this it would be appreciated ...Thanks in advance !!

  • ttyl
    Community Member
    114 Posts

    Re: SS_Datetime Link to this post

    I don't think you can do that in SS per se, but you could write a sql query to get the timestamp out that way.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.