php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7323 Limitation to substr()
Submitted: 2000-10-18 18:30 UTC Modified: 2000-11-12 16:43 UTC
From: derekpapesch at crm-strategies dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS:
Private report: No CVE-ID: None
 [2000-10-18 18:30 UTC] derekpapesch at crm-strategies dot com
I haven't looked into this much, but it appears that the substr() function only accepts 
American MM/DD/YYYY, it is possible that this is set up when you install (I didn't install it) but it would be nice if you could add a switch so that substr() accepts the European DD/MM/YYYY format.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-11 05:49 UTC] hholzgra@php.net
i can see absolutely no connection between 
substr() and date formats
 [2000-11-12 16:43 UTC] derick@php.net
I sorted it out and there is no way that there a parameter added to change the behaviour from MM/DD/YY to DD/MM/YY. However, you still can USE the UNIXTIME() function of MySQL.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 17:01:33 2024 UTC