Function |
Description |
---|---|
Returns a user defined string with date information. |
Returns a user defined string with date information. See Usage below for a list of special escape sequences in the format string will be replaced by the referring date part.
number uFormatDate(format, modifiers, ...)
A format specification for the return string
List of strings specifying a date or date calculation. Default is the now modifier.
Create a string from a date
uFormatDate("Today is %A the %d of %B in %Y", "now") //returns something like "Today is Thursday the 10 of February in 2005"
The function uFormatDate returns a user defined string with date information. Special escape sequences in the format string will be replaced by the referring date part.
Escape sequence |
Returns |
---|---|
|
Weekday name |
|
Weekday name short |
|
Month name |
|
Month name short |
|
Day of month |
|
fractional seconds SS.SSS |
|
Hour 00-24 |
|
Day of year 000-366 |
|
Julian day number |
|
Month |
|
Minute |
|
Seconds since 1970-01-01 |
|
Seconds 00-59 |
|
Day of week 0-6, 0=Sunday |
|
Week of year |
|
Year 0000-9999 |
|
% |