{"id":913,"date":"2019-10-17T15:47:21","date_gmt":"2019-10-17T12:47:21","guid":{"rendered":"https:\/\/www.about1c.ru\/v83\/?p=913"},"modified":"2023-09-05T21:18:53","modified_gmt":"2023-09-05T18:18:53","slug":"function-format","status":"publish","type":"post","link":"https:\/\/www.about1c.ru\/v83\/language-reference\/other\/function-format","title":{"rendered":"\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0424\u043e\u0440\u043c\u0430\u0442()"},"content":{"rendered":"<p>\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 (\u0427\u0438\u0441\u043b\u043e, \u0414\u0430\u0442\u0430 \u0438 \u0411\u0443\u043b\u0435\u0432\u043e)<br \/>\n<!--more--><\/p>\n<h2>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441<\/h2>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>\u0424\u043e\u0440\u043c\u0430\u0442()<\/code>\u00a0\u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre class=\"syntax\">\u0421\u0442\u0440\u043e\u043a\u0430 \u0424\u043e\u0440\u043c\u0430\u0442(\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435, [\u0424\u043e\u0440\u043c\u0430\u0442\u043d\u0430\u044f\u0421\u0442\u0440\u043e\u043a\u0430])<\/pre>\n<p>\u0410 \u0442\u0430\u043a\u0436\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre>string Format(Value, [FormatString])<\/pre>\n<h2>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/h2>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>\u0424\u043e\u0440\u043c\u0430\u0442()<\/code>:<\/p>\n<table class=\"wright\">\n<tbody>\n<tr>\n<th>\u0418\u043c\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430*<\/th>\n<th>\u0422\u0438\u043f<\/th>\n<th>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th>\n<\/tr>\n<tr>\n<td><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/td>\n<td>\u0427\u0438\u0441\u043b\u043e, \u0414\u0430\u0442\u0430, \u0411\u0443\u043b\u0435\u0432\u043e<\/td>\n<td>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/td>\n<\/tr>\n<tr>\n<td>\u0424\u043e\u0440\u043c\u0430\u0442\u043d\u0430\u044f\u0421\u0442\u0440\u043e\u043a\u0430<\/td>\n<td>\u0421\u0442\u0440\u043e\u043a\u0430<\/td>\n<td><a href=\"http:\/\/www.about1c.ru\/v83\/language-reference\/format-string\">\u0424\u043e\u0440\u043c\u0430\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/a> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0430\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u0442\u043e\u0447\u043a\u0443 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439. \u0415\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a \u0441\u0442\u0440\u043e\u043a\u0435).<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\"><strong>*\u0416\u0438\u0440\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c<\/strong> \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u044b \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0421\u0442\u0440\u043e\u043a\u0430<\/p>\n<h2>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h2>\n<p style=\"text-align: justify;\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>\u0424\u043e\u0440\u043c\u0430\u0442()<\/code> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e\u0435 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 (\u0427\u0438\u0441\u043b\u043e, \u0414\u0430\u0442\u0430 \u0438\u043b\u0438 \u0411\u0443\u043b\u0435\u0432\u043e). \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0441\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0438 \u043f\u0440\u0438 \u043f\u0440\u043e\u0447\u0435\u043c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439.<\/p>\n<div class=\"attention\"><strong>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/strong> \u0414\u043b\u044f \u043f\u0443\u0441\u0442\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (\u0427\u0438\u0441\u043b\u043e = <code>0<\/code> \u0438 \u0414\u0430\u0442\u0430 = <code>01.01.0001 00:00:00<\/code>) \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443<\/div>\n<h2>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c<\/h2>\n<table class=\"nested nleft\">\n<tbody>\n<tr>\n<th>\u0412\u0435\u0440\u0441\u0438\u044f<\/th>\n<th>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430<\/th>\n<\/tr>\n<tr>\n<td>8.1<\/td>\n<td>\u0421\u0435\u0440\u0432\u0435\u0440, \u041a\u043b\u0438\u0435\u043d\u0442, \u0412\u043d\u0435\u0448\u043d\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td>8.2<\/td>\n<td>\u0421\u0435\u0440\u0432\u0435\u0440, \u0422\u043e\u043b\u0441\u0442\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0422\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0412\u0435\u0431-\u043a\u043b\u0438\u0435\u043d\u0442, \u0412\u043d\u0435\u0448\u043d\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td>8.3<\/td>\n<td>\u0421\u0435\u0440\u0432\u0435\u0440, \u0422\u043e\u043b\u0441\u0442\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0422\u043e\u043d\u043a\u0438\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u0412\u0435\u0431-\u043a\u043b\u0438\u0435\u043d\u0442, \u0412\u043d\u0435\u0448\u043d\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442, \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>\u0424\u043e\u0440\u043c\u0430\u0442()<\/code>:<\/p>\n<pre class=\"code\"><span style=\"color: green;\">\/\/\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0447\u0438\u0441\u0435\u043b<\/span>\r\n\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c<span style=\"color: red;\">(<\/span>\u0424\u043e\u0440\u043c\u0430\u0442<span style=\"color: red;\">(<\/span><span style=\"color: black;\">123456.789<\/span><span style=\"color: red;\">,<\/span> <span style=\"color: black;\">\"\u0427\u0426=10; \u0427\u0414\u0426=2\"<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: green;\">\/\/\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/span>\r\n<span style=\"color: green;\">\/\/\t123 456,79<\/span>\r\n\r\n<span style=\"color: green;\">\/\/\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u0442<\/span>\r\n\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c<span style=\"color: red;\">(<\/span>\u0424\u043e\u0440\u043c\u0430\u0442<span style=\"color: red;\">(<\/span>'20190111153309'<span style=\"color: red;\">,<\/span> <span style=\"color: black;\">\"\u0414\u041b\u0424=\u0414\u0414\"<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: green;\">\/\/\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/span>\r\n<span style=\"color: green;\">\/\/\t11 \u044f\u043d\u0432\u0430\u0440\u044f 2019 \u0433.<\/span>\r\n\r\n<span style=\"color: green;\">\/\/\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439<\/span>\r\n\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c<span style=\"color: red;\">(<\/span>\u0424\u043e\u0440\u043c\u0430\u0442<span style=\"color: red;\">(<\/span><span style=\"color: red;\">\u0418\u0441\u0442\u0438\u043d\u0430<\/span><span style=\"color: red;\">,<\/span> <span style=\"color: black;\">\"\u0411\u041b=\u041d\u0435\u0442; \u0411\u0418=\u0414\u0430\"<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">)<\/span><span style=\"color: red;\">;<\/span>\r\n<span style=\"color: green;\">\/\/\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/span>\r\n<span style=\"color: green;\">\/\/\t\u0414\u0430<\/span>\r\n<\/pre>\n<h3>\u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0436\u0435:<\/h3>\n<ul>\n<li><a href=\"http:\/\/www.about1c.ru\/v83\/language-reference\/format-string\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 (\u0427\u0438\u0441\u043b\u043e, \u0414\u0430\u0442\u0430 \u0438 \u0411\u0443\u043b\u0435\u0432\u043e)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-913","post","type-post","status-publish","format-standard","hentry","category-other"],"_links":{"self":[{"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/posts\/913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/comments?post=913"}],"version-history":[{"count":7,"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/posts\/913\/revisions"}],"predecessor-version":[{"id":2514,"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/posts\/913\/revisions\/2514"}],"wp:attachment":[{"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/media?parent=913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/categories?post=913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.about1c.ru\/v83\/wp-json\/wp\/v2\/tags?post=913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}