如何获取当前日期?

dgdlking 2003-04-17 04:39:40
如题
...全文
1117 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
azsoft 2003-04-17
  • 打赏
  • 举报
回复
delphi: formatdatetime('yyyy-mm-dd',now) ;
SQL: getdate(); or convert(char(10),getdate(),20)
paul911 2003-04-17
  • 打赏
  • 举报
回复
edit1.text:=DateToStr(now);
vuen 2003-04-17
  • 打赏
  • 举报
回复
Now();
snake_eye 2003-04-17
  • 打赏
  • 举报
回复
now!
lyq 2003-04-17
  • 打赏
  • 举报
回复
getdate() sql中
seawavefj 2003-04-17
  • 打赏
  • 举报
回复
now
qxj 2003-04-17
  • 打赏
  • 举报
回复
now
u2m 2003-04-17
  • 打赏
  • 举报
回复
Date
DayOfWeek(now)
  • 打赏
  • 举报
回复
Date function

Returns the current date.

DateDelta constant

Specifies the correction factor when computing the difference between two date and time types that do not begin in the same year.

DateTimeToFileDate function

Converts a TDateTime object to a DOS date-and-time value.

DateTimeToStr function

Converts a TDateTime value to a string.

DateTimeToString procedure

Converts a TDateTime value to a string using a specified Format.

DateTimeToSystemTime procedure

Converts a TDateTime value into the Win32 API's TSystemTime type.

DateTimeToTimeStamp function

Converts a TDateTime value into the corresponding TTimeStamp value.

DateToStr function

Converts a TDateTime value to a string.

DayOfWeek function

Returns the day of the week for a specified date.

DecodeDate procedure

Returns Year, Month, and Day values for a TDateTime value.

DecodeTime procedure

Breaks a TDateTime value into hours, minutes, seconds, and milliseconds.

EncodeDate function

Returns a TDateTime value that represents a specified Year, Month, and Day.

EncodeTime function

Returns a TDateTime value for a specified Hour, Min, Sec, and MSec.

FormatDateTime function

Formats a TDateTime value.

IncMonth function

Returns a date shifted by a specified number of months.

IsLeapYear function

Indicates whether a specified year is a leap year.

MSecsPerDay constant

Specifies the number of milliseconds per day.

MSecsToTimeStamp function

Converts a specified number of milliseconds into a TTimeStamp value.

Now function

Returns the current date and time.

ReplaceDate procedure

Replaces the date portion of a TDateTime value with a specified date.

ReplaceTime procedure

Replaces the time portion of a TDateTime value with a specified time.

SecsPerDay constant

Indicates the number of seconds per day.

StrToDate function

Converts a string to a TDateTime value.

StrToDateTime function

Converts a string to a TDateTime value.

StrToTime function

Converts a string to a TDateTime value.

SystemTimeToDateTime function

Converts a TSystemTime value into a TDateTime value.

Time function

Returns the current time.

TimeStampToDateTime function

Converts a TTimeStamp value into the corresponding TDateTime value.

TimeStampToMSecs function

Converts a TTimeStamp value into an absolute number of milliseconds.

TimeToStr function

Returns a string that represents a TDateTime value.
  • 打赏
  • 举报
回复
Date function

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧