15,047
edits
m (→Related pages) |
|||
| Line 18: | Line 18: | ||
OS in Mandarin Chinese (Windows 10): 2017/02/03 週五 15:35:31.61 | OS in Mandarin Chinese (Windows 10): 2017/02/03 週五 15:35:31.61 | ||
</pre> | </pre> | ||
If PHP was installed. (1) Saved the PHP execution result to the file `today.txt` (2) Read the file content and save to the variable '%TODAY%' | |||
<pre>command: | |||
php -r "echo date('Y-m-d);" > today.txt | |||
SET /P TODAY=<today.txt | |||
ECHO %TODAY% | |||
</pre> | |||
output: `{{Template:Today}}` | |||
== PHP & MySQL == | == PHP & MySQL == | ||