{"id":10072,"date":"2017-04-09T14:48:32","date_gmt":"2017-04-09T06:48:32","guid":{"rendered":"http:\/\/www.vbtutor.net\/?page_id=10072"},"modified":"2018-06-22T14:01:38","modified_gmt":"2018-06-22T06:01:38","slug":"visual-basic-2017-lesson-20-format-functions","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-20-format-functions\/","title":{"rendered":"Visual Basic 2017 Lesson 20: The Format Functions"},"content":{"rendered":"<h4 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-19-trigonometric-functions\/\">[Lesson 19]<\/a> &lt;&lt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-tutorial\/\">[Contents]<\/a> &gt;&gt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-21-working-checkboxes\/\">[Lesson 21]<\/a><\/h4>\n<h3>20.1 Format function for Numbers<\/h3>\n<p>The Format function in Visual Basic 2017 is a very useful formatting function. It is used to display numbers customised by the programmer. It can also be used to display date and time in various formats. There are two types of Format functions, the built-in Format function and the user-defined Format function.<\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"3393818013\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4><strong>20.1(a) Built-in Format function for Numbers<\/strong><\/h4>\n<p>The syntax of the built-in Format function is<\/p>\n<p><strong>Format (n, \u201cstyle argument\u201d)<\/strong><\/p>\n<p>where n is a number.<\/p>\n<p>The list of style arguments in Visual Basic 2017 is given in Table 20.1.<\/p>\n<h4 align=\"center\">Table 20.1<\/h4>\n<table>\n<tbody>\n<tr>\n<th>Style argument<\/th>\n<th>Explanation<\/th>\n<th>Example<\/th>\n<\/tr>\n<tr>\n<td>General Number<\/td>\n<td>To display the number without having separators between thousands.<\/td>\n<td>Format(8972.234, &#8220;General Number&#8221;)=8972.234<\/td>\n<\/tr>\n<tr>\n<td>Fixed<\/td>\n<td>To display the number without having separators between thousands and rounds it up to two decimal places.<\/td>\n<td>Format(8972.2, &#8220;Fixed&#8221;)=8972.23<\/td>\n<\/tr>\n<tr>\n<td>Standard<\/td>\n<td>To display the number with separators or separators between thousands and rounds it up to two decimal places.<\/td>\n<td>Format(6648972.265, &#8220;Standard&#8221;)= 6,648,972.27<\/td>\n<\/tr>\n<tr>\n<td>Currency<\/td>\n<td>To display the number with the dollar sign in front, has separators between thousands as well as rounding it up to two decimal places.<\/td>\n<td>Format(6648972.265, &#8220;Currency&#8221;)= $6,648,972.27<\/td>\n<\/tr>\n<tr>\n<td>Percent<\/td>\n<td>Converts the number to the percentage form and displays a % sign and rounds it up to two decimal places.<\/td>\n<td>Format(0.56324, &#8220;Percent&#8221;)=56.32 %<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>Example 20.1<\/strong><\/h4>\n<pre style=\"font-size: 110%;\">Private Sub BtnFormat_Click(sender As Object, e As EventArgs) Handles BtnFormat.Click\r\nLabel1.Text = Format(8972.234, \"General Number\")\r\nLabel2.Text = Format(8972.2, \"Fixed\")\r\nLabel3.Text = Format(6648972.265, \"Standard\")\r\nLabel4.Text = Format(6648972.265, \"Currency\")\r\nLabel5.Text = Format(0.56324, \"Percent\")\r\nEnd Sub\r\n<\/pre>\n<p><strong>The Output<\/strong><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4736\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\" alt=\"vb2013_figre19.1\" width=\"310\" height=\"320\" \/><\/a><strong>Figure 20.1<\/strong><\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"3393818013\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4><strong>20.1(b) User-Defined Format<\/strong><\/h4>\n<p>The syntax of the user-defined Format function is<\/p>\n<p><strong>Format (n, \u201cuser\u2019s format\u201d)<\/strong><\/p>\n<p>Although it is known as user-defined format, we still need to follows certain formatting styles. Examples of user-defined formatting style are listed in Table 19.2<\/p>\n<h4 align=\"center\">Table 20.2<\/h4>\n<div style=\"overflow-x: auto;\">\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<th>Format<\/th>\n<th>Description<\/th>\n<th>Output<\/th>\n<\/tr>\n<tr>\n<td>Format(781234.576,&#8221;0&#8243;)<\/td>\n<td>Rounds to whole number without separators between thousands<\/td>\n<td>\u00a0781235<\/td>\n<\/tr>\n<tr>\n<td>\u00a0Format(781234.576,&#8221;0.0&#8243;)<\/td>\n<td>Rounds to 1 decimal place without separators between thousands<\/td>\n<td>\u00a0781234.6<\/td>\n<\/tr>\n<tr>\n<td>\u00a0Format(781234.576,&#8221;0.00&#8243;)<\/td>\n<td>Rounds to 2 decimal place without separators between thousands<\/td>\n<td>\u00a0781234.58<\/td>\n<\/tr>\n<tr>\n<td>\u00a0\u00a0Format(781234.576,&#8221;#,##0.00&#8243;)<\/td>\n<td>Rounds to 2 decimal place with separators between thousands<\/td>\n<td>\u00a0781,234.58<\/td>\n<\/tr>\n<tr>\n<td>\u00a0Format(781234.576,&#8221;$#,##0.00&#8243;)<\/td>\n<td>Displays dollar sign and\u00a0Rounds to 2 decimal place with separators between thousands<\/td>\n<td>\u00a0$781,234.58<\/td>\n<\/tr>\n<tr>\n<td>\u00a0Format(0.576,&#8221;0%&#8221;)<\/td>\n<td>Converts to percentage form without decimal place<\/td>\n<td>\u00a058%<\/td>\n<\/tr>\n<tr>\n<td>\u00a0Format(0.5768,&#8221;0%&#8221;)<\/td>\n<td>Converts to percentage form with two decimal places<\/td>\n<td>\u00a057.68%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"3393818013\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4><strong>Example 20.2<\/strong><\/h4>\n<pre style=\"font-size: 100%;\">Private Sub BtnFormat_Click(sender As Object, e As EventArgs) Handles BtnFormat.Click\r\nLabel1.Text = Format(8972.234, \"0.0\")\r\nLabel2.Text = Format(8972.2345, \"0.00\")\r\nLabel3.Text = Format(6648972.265, \"#,##0.00\")\r\nLabel4.Text = Format(6648972.265, \"$#,##0.00\")\r\nLabel5.Text = Format(0.56324, \"0%\")\r\nEnd Sub\r\n<\/pre>\n<p>The Output<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure19.2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4746\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure19.2.jpg\" alt=\"vb2013_figure19.2\" width=\"300\" height=\"300\" \/><\/a><strong>Figure 20.2<\/strong><\/p>\n<h3 style=\"text-align: left;\">20.2 Formatting Date and Time<\/h3>\n<p>There are two types of Format functions for Date and time one of them is the built-in or predefined format while another one can be defined by the user.<\/p>\n<h4><strong>20.2(a) Formatting Date and time using predefined formats\u00a0<\/strong><\/h4>\n<p>In Visual Basic 2017 , we can format date and time using predefined formats or user-defined formats. The predefined formats of date and time are shown in Table 19.3<\/p>\n<h4 align=\"center\">Table 20.3<\/h4>\n<table>\n<tbody>\n<tr>\n<th>\u00a0Format<\/th>\n<th>\u00a0description<\/th>\n<\/tr>\n<tr>\n<td>Format(Now, &#8220;General Date&#8221;)<\/td>\n<td>Displays current date and time<\/td>\n<\/tr>\n<tr>\n<td>Format(Now, &#8220;Long Date&#8221;)<\/td>\n<td>Displays current date in long format<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cShort date\u201d)<\/td>\n<td>Displays current date in short format<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cLong Time\u201d)<\/td>\n<td>Displays current time in long format.<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cShort Time\u201d)<\/td>\n<td>Displays current time in short format.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>\u00a0Example 20.3<\/strong><\/h4>\n<pre style=\"font-size: 100%;\">Private Sub BtnDisplay_Click(sender As Object, e As EventArgs) Handles BtnDisplay.Click\r\nLabel1.Text = Format(Now, \"General Date\")\r\nLabel2.Text = Format(Now, \"Long Date\")\r\nLabel3.Text = Format(Now, \"short Date\")\r\nLabel4.Text = Format(Now, \"Long Time\") Label5.Text = Format(Now, \"Short Time\")\r\nEnd Sub\r\n<\/pre>\n<p>The output<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure19.3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4751\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure19.3.jpg\" alt=\"vb2013_figure19.3\" width=\"300\" height=\"300\" \/><\/a><strong>Figure 20.3<\/strong><\/p>\n<p>You can display dates and time in real-time using a timer and set its property Enabled to true and interval 100. The code is as follows:<\/p>\n<pre style=\"font-size: 100%;\">Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick\r\nLabel1.Text = Format(Now, \"General Date\")\r\nLabel2.Text = Format(Now, \"Long Date\")\r\nLabel3.Text = Format(Now, \"short Date\")\r\nLabel4.Text = Format(Now, \"Long Time\")\r\nLabel5.Text = Format(Now, \"Short Time\")\r\nEnd Sub\r\n<\/pre>\n<h4><b>20.2(b) Formatting Date and time using user-defined formats<\/b><\/h4>\n<p>Beside using the predefined\u00a0 formats, you can also use the user-defined formatting functions. The syntax of a user-defined format \u00a0for date and time is <strong>\u00a0\u00a0\u00a0\u00a0\u00a0<\/strong><\/p>\n<p><strong>\u00a0 Format (expression,style)<\/strong><\/p>\n<h4 align=\"center\">Table 20.4<\/h4>\n<table>\n<tbody>\n<tr>\n<th>Format<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cm\u201d)<\/td>\n<td>Displays current month and date<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cmm\u201d)<\/td>\n<td>Displays current month in double digits.<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cmmm\u201d)<\/td>\n<td>Displays abbreviated name of the current month<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cmmmm\u201d)<\/td>\n<td>Displays full name of the current month.<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, \u201cdd\/mm\/yyyy\u201d)<\/td>\n<td>Displays current date in the day\/month\/year format.<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, &#8220;mmm,d,yyyy&#8221;)<\/td>\n<td>Displays current date in the Month, Day, Year Format<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, &#8220;h:mm:ss tt&#8221;)<\/td>\n<td>Dispalys current time in hour:minute:second format and show am\/pm<\/td>\n<\/tr>\n<tr>\n<td>Format (Now, &#8220;MM\/dd\/yyyy h:mm:ss)<\/td>\n<td>Dispalys current date and time in hour:minute:second format<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>Example 20.4<\/strong><\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick\r\nLabel1.Text = Format(Now, \"m\")\r\nLabel2.Text = Format(Now, \"mm\")\r\nLabel3.Text = Format(Now, \"mmm\")\r\nLabel4.Text = Format(Now, \"mmmm\")\r\nLabel5.Text = Format(Now, \"dd\/mm\/yyyy\")\r\nLabel6.Text = Format(Now, \"mmm,d,yyyy\")\r\nLabel7.Text = Format(Now, \"h:mm:ss tt\")\r\nLabel8.Text = Format(Now, \"MM\/dd\/yyyy h:mm:ss tt\")\r\nEnd Sub\r\n<\/pre>\n<h4>The output<\/h4>\n<div id=\"mycontent\" style=\"border-bottom: 1px #3399ff solid; border-top: 1px #3399ff solid; padding-bottom: 0px;\">\n<div class=\"column1\">\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure19.4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4756\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure19.4.jpg\" alt=\"vb2013_figure19.4\" width=\"317\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 20.4<\/strong><\/p>\n<\/div>\n<div class=\"column2\" style=\"text-align: center; border-left: 1px #3399ff solid; padding-left: 5px; padding-bottom: 50px;\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block;\" data-ad-format=\"autorelaxed\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"9961025909\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-19-trigonometric-functions\/\">[Lesson 19]<\/a>\u00a0&lt;&lt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-tutorial\/\">[Contents]<\/a>\u00a0&gt;&gt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-21-working-checkboxes\/\">[Lesson 21]<\/a><\/h4>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 19] &lt;&lt;[Contents] &gt;&gt; [Lesson 21] 20.1 Format function for Numbers The Format function in Visual Basic 2017 is a very useful formatting function. It is used to display numbers customised by the programmer. It can also be used to display date and time in various formats. There are two types of Format functions, the &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-20-format-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2017 Lesson 20: The Format Functions<\/span><\/a><\/p>\n","protected":false},"author":23013,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-10072","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Visual Basic 2017 Lesson 20: The Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"Learn how to format output using format functions in visual basic 2017\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visual Basic 2017 Lesson 20: The Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"Learn how to format output using format functions in visual basic 2017\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html\" \/>\n<meta property=\"og:site_name\" content=\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Vbtutor\" \/>\n<meta property=\"article:modified_time\" content=\"2018-06-22T06:01:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@liewvk\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-20-format-functions\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html\",\"name\":\"Visual Basic 2017 Lesson 20: The Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\",\"datePublished\":\"2017-04-09T06:48:32+00:00\",\"dateModified\":\"2018-06-22T06:01:38+00:00\",\"description\":\"Learn how to format output using format functions in visual basic 2017\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\",\"width\":310,\"height\":320},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2017 Lesson 20: The Format Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vbtutor.net\/#website\",\"url\":\"https:\/\/www.vbtutor.net\/\",\"name\":\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"description\":\"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.\",\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Visual Basic 2017 Lesson 20: The Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Learn how to format output using format functions in visual basic 2017","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2017 Lesson 20: The Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"Learn how to format output using format functions in visual basic 2017","og_url":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html","og_site_name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","article_publisher":"https:\/\/www.facebook.com\/Vbtutor","article_modified_time":"2018-06-22T06:01:38+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@liewvk","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2017-lesson-20-format-functions\/","url":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html","name":"Visual Basic 2017 Lesson 20: The Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg","datePublished":"2017-04-09T06:48:32+00:00","dateModified":"2018-06-22T06:01:38+00:00","description":"Learn how to format output using format functions in visual basic 2017","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#primaryimage","url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg","contentUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg","width":310,"height":320},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2017\/vb2017_lesson20.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2017 Lesson 20: The Format Functions"}]},{"@type":"WebSite","@id":"https:\/\/www.vbtutor.net\/#website","url":"https:\/\/www.vbtutor.net\/","name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.","inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/10072","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/users\/23013"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=10072"}],"version-history":[{"count":19,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/10072\/revisions"}],"predecessor-version":[{"id":12994,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/10072\/revisions\/12994"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=10072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=10072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=10072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}