DateTimeToStr
Function DateTimeToStr(ADataTime: tDataTime; Aformat: string):string;
// Конвертирует штампе времени AdataTime в текст с указанным в Aformat форматом
DATE FORMAT COMPONENTS
| FORMAT | DESCRIPTION |
|---|---|
| d | Day of the month in one or two numeric digits, as needed (1 to 31). |
| dd | Day of the month in two numeric digits (01 to 31). |
| ddd | First three letters of the weekday (Sun to Sat). |
| dddd | Full name of the weekday (Sunday to Saturday). |
| w | Day of the week (1 to 7). |
| ww | Week of the year (1 to 53). |
| m | Month of the year in one or two numeric digits, as needed (1 to 12). |
| mm | Month of the year in two numeric digits (01 to 12). |
| mmm | First three letters of the month (Jan to Dec). |
| mmmm | Full name of the month (January to December). |
| q | The quarter of the year (1 to 4). |
| y | Number of the day of the year (1 to 366). |
| yy | Last two digits of the year (01 to 99). |
| yyyy | Full year (0100 to 9999). |
TIME FORMAT COMPONENTS
| FORMAT | DESCRIPTION |
|---|---|
| H | Hour in one or two digits, as needed (0 to 23). |
| hh | Hour in two digits (00 to 23). |
| N | Minute in one or two digits, as needed (0 to 59). |
| nn | Minute in two digits (00 to 59). |
| s | Second in one or two digits, as needed (0 to 59). |
| ss | Second in two digits (00 to 59). |
CLOCK FORMAT COMPONENTS
| FORMAT | DESCRIPTION |
|---|---|
| AM/PM |
Twelve-hour clock with the uppercase letters "AM" or "PM," as appropriate. For example, 9:34PM. |
| am/pm | Twelve-hour clock with the lowercase letters "am" or "pm," as appropriate. For example, 9:34pm. |
| A/P | Twelve-hour clock with the uppercase letter "A" or "P," as appropriate. For example, 9:34P. |
| a/p | Twelve-hour clock with the lowercase letter "a" or "p," as appropriate. For example, 9:34p. |
| AMPM | Twelve-hour clock with the appropriate morning/afternoon designator as defined in the regional settings of Windows |