Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » strftime('%d. %B %Y %H.%i', strtotime($myDateTime)) returns 06. Juni 2013 19.%i

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

Page: 1
Go to End
Author Topic: 444 Views
  • yurigoul
    Avatar
    Community Member
    202 Posts

    strftime('%d. %B %Y %H.%i', strtotime($myDateTime)) returns 06. Juni 2013 19.%i Link to this post

    When using a DateTimeField strftime('%d. %B %Y %H.%i', strtotime($myDateTime)) returns 06. Juni 2013 19.%i (instead of 19.00)

    I have seen that in datetime.php mm is used for the minutes, but it does not do the trick

    I am not looking for a solution, I already found one: I left out the time part and used $myDateTime.Time24() in my template to get the time.

    Anyone willing to create a bug report be my guest.

    444 Views
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.