Created
March 1, 2012 07:44
-
-
Save violetyk/1948095 to your computer and use it in GitHub Desktop.
[php]日時とか
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 文字列から | |
$timestamp = strtotime('2012-03-01 15:47:00'); | |
// タイムスタンプから | |
$yyyymmdd = date("Y/m/d", $timestamp); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 文字列から | |
$timestamp = strtotime('2012-03-01 15:47:00'); | |
// タイムスタンプから | |
$yyyymmdd = date("Y/m/d", $timestamp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment