📄 mdyfcn.hlp
字号:
{smcl}
{* 07apr2005}{...}
{cmd:help mdyfcn}
{hline}
{title:Title}
{p2colset 5 37 42 2}{...}
{p2col :{hi:[U] 24.2.2.1 The mdy() function}}{hline 2} Creating
dates from month, day, year{p_end}
{title:Syntax}
{p 8 17 2}{it:...} {cmd:mdy(}{it:month_exp}{cmd:,} {it:day_exp}{cmd:,}
{it:year_exp}{cmd:)} {it:...}
{title:Remarks}
{pstd}
Function description:
{p 4 19 2}1st argument:{space 2}month number; 1, 2, ..., 12{p_end}
{p 4 19 2}2nd argument:{space 2}day-within-month number; 1, 2, ..., 31{p_end}
{p 4 19 2}3rd argument:{space 2}year; e.g., 1960, 1985, 2002, etc.{p_end}
{p 4 19 2}Returns:{space 7}{cmd:%d} ({cmd:%td}) date (0=01jan1960, etc.) or
missing value
{pstd}
See {help dates} and {help tdates} for an explanation of dates.
See {help dfmt} and {help tfmt} for an explanation of date and
time-series formats. See {help function} for other functions.
{title:Examples}
{phang}{cmd:. generate hdate = mdy(hmo, hday, hyr)}{p_end}
{phang}{cmd:. format hdate %d}
{phang}{cmd:. generate bdate = mdy(1,1,birthyr+1900)}{p_end}
{phang}{cmd:. format bdate %d}
{title:Also see}
{psee}
Manual: {bf:[D] functions},{break}
{bf:[U] 24 Dealing with dates},{break}
{bf:[U] 24.2.2.1 The mdy() function}
{psee}
Online: {help datefcn},
{help dates},
{help dfmt},
{helpb format},
{help functions},
{help tdates},
{help tfmt}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -