Function to obtain the date/time value of the end of the day from the specified date.

 

Syntax

function EndOfTheDay(dt: double): double;

 

Parameters and return values

Parameter

Type

Value

dt

double

source date/time value.

 

Function result

Date/time value that represents the last second of the day.

 

Example


var
  dt: double;
begin
  dt := EndOfTheDay(Now);
  mLogScript(FormatDateTime('mm.dd.yyyy hh:nn:ss', dt), '');
end.


Script work result

[22:27:06] (Log "EndOfTheDay"): 09.18.2016 23:59:59

[22:27:06] (Run "EndOfTheDay"): Script operation time: 5 ms

[22:27:06] (Run "EndOfTheDay"): Script done successfully.

 

See also

FormatDateTime
mLogScript

Now