制作ASP程序时用DWMX2004系统自带的时间格式化工具就可以方便地实现目标显示格式,可惜PHP模组里没有类似的功能,
不过我们手写几个字符就搞定了
将 $row_rsLesson['N_Date']) 改为你的时间记录字段内容
输出的格式是: 年-月-日 你可以根据要求设定,例如:"m-d" 或者 "mdHi"等
这里用到两个函式 一个 是date() 一个 是strtotime()
date() :传入时间戳值,将时间戳格式化传回
strtotime () 将任何英文文本的日期时间描述解析为 UNIX 时间戳

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version
Recommended: Win version, supports code prompts!

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
