PHP 处理JS传来的时间

xiaoxiao2025-08-13  26

$jsTime = $_POST['time']; $time = strtotime(date('Y-m-d',strtotime($jsTime))); return $time;

#处理思路,先把字符串转为时间戳,在用PHP系统函数处理。

转载请注明原文地址: https://www.6miu.com/read-5034773.html

最新回复(0)