3.5.1.2.1 Date2str


Description

Returns date string corresponding to the specified Julian-day value. The input Julian-day value can include both day and time information. The integer part of the input value is the number of Julian days and the fractional part is the fraction of a 24 hour day. The return date string is displayed in the format specified by the string argument.


See this note.

Syntax

string date2str(double d,string format)$

Parameters

d

is a Julian Date Value which can include Date and Time.

format

the string specifying the format of output date and time.

Return

Return the date string.

Example

string aa$ = date2str(2456573.123, "dd/MM/yyyy HH:mm")$;
aa$ = ;//Return date string 08/10/2013 02:57

See Also

Time2str, Date