{"id":298,"date":"2023-05-04T11:05:37","date_gmt":"2023-05-04T08:05:37","guid":{"rendered":"https:\/\/kb.astrocroc.com\/?p=298"},"modified":"2023-05-04T11:05:37","modified_gmt":"2023-05-04T08:05:37","slug":"epplusfree-%d1%84%d0%be%d1%80%d0%bc%d0%b0%d1%82%d1%8b-%d0%b4%d0%b0%d0%bd%d0%bd%d1%8b%d1%85","status":"publish","type":"post","link":"https:\/\/kb.astrocroc.com\/?p=298","title":{"rendered":"EPPlusFree \u0444\u043e\u0440\u043c\u0430\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0445"},"content":{"rendered":"\n<p>\u0414\u043b\u044f \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 DateTime:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-cs\" data-line=\"\">workSheet.Cells[curRow + firstDataRow, 31].Value = double.Parse(input);\nworkSheet.Cells[curRow + firstDataRow, 31].StyleID = workSheet.Cells[firstDataRow, 31].StyleID;\nworkSheet.Cells[curRow + firstDataRow, 31].Style.Numberformat.Format = &quot;dd.MM.yyyy HH:mm:ss&quot;;\/\/or m\/d\/yy h:mm<\/code><\/pre>\n\n\n\n<p>\u0414\u043b\u044f \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-cs\" data-line=\"\">\/\/integer (not really needed unless you need to round numbers, Excel will use default cell properties)\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;0&quot;;\n\n\/\/integer without displaying the number 0 in the cell\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;#&quot;;\n\n\/\/number with 1 decimal place\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;0.0&quot;;\n\n\/\/number with 2 decimal places\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;0.00&quot;;\n\n\/\/number with 2 decimal places and thousand separator\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;#,##0.00&quot;;\n\n\/\/number with 2 decimal places and thousand separator and money symbol\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;\u20ac#,##0.00&quot;;\n\n\/\/percentage (1 = 100%, 0.01 = 1%)\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;0%&quot;;\n\n\/\/accounting number format\nws.Cells[&quot;A1:A25&quot;].Style.Numberformat.Format = &quot;_-$* #,##0.00_-;-$* #,##0.00_-;_-$* \\&quot;-\\&quot;??_-;_-@_-&quot;;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 DateTime: \u0414\u043b\u044f \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,9],"tags":[51,40],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-sharepoint","category-web-forms","tag-epplusfree","tag-excel"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298"}],"version-history":[{"count":1,"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=\/wp\/v2\/posts\/298\/revisions\/299"}],"wp:attachment":[{"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.astrocroc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}