{"id":7158,"date":"2015-09-01T15:10:58","date_gmt":"2015-09-01T07:10:58","guid":{"rendered":"http:\/\/www.vbtutor.net\/?page_id=7158"},"modified":"2018-06-22T18:12:41","modified_gmt":"2018-06-22T10:12:41","slug":"visual-basic-2015-lesson-20-format-functions","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-20-format-functions\/","title":{"rendered":"Visual Basic 2015 Lesson 20: Format Functions"},"content":{"rendered":"<h4 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-19-trigonometric-functions\/\">[Lesson 19]<\/a> &lt;&lt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-tutorial\/\">[Contents]<\/a> &gt;&gt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-21-working-with-checkboxes\/\">[Lesson 21]<\/a><\/h4>\n<h3>20.1 Format function for Numbers<\/h3>\n<p>The Format function in Visual Basic 2015 is a very useful formatting function. It is used to display numbers in formats customized by the users. For example, to display a number with separators or without separators. 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=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3><strong>20.1(a) Built-in Format function for Numbers<\/strong><\/h3>\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 2015 is given in Table 20.1.<\/p>\n<h3 align=\"center\">Table 20.1<\/h3>\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\n\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\n\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=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3><strong>20.1(b) User-Defined Format<\/strong><\/h3>\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<h3 align=\"center\">Table 20.2<\/h3>\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<p><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=\"1492877908\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<p><strong>Example 20.2<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Private Sub BtnFormat_Click(sender As Object, e As EventArgs) Handles BtnFormat.Click\r\n\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\n\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<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=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h2 style=\"text-align: left;\">20.2 Formatting Date and Time<\/h2>\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<h3><strong>20.2(a) Formatting Date and time using predefined formats\u00a0<\/strong><\/h3>\n<p>In Visual Basic 2013, we can format date and time using predefined formats or user-defined formats. The predefined formats of date and time are shown in Table 20.3<\/p>\n<h3 align=\"center\">Table 20.3<\/h3>\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<p><strong>\u00a0Example 20.3<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Private Sub BtnDisplay_Click(sender As Object, e As EventArgs) Handles BtnDisplay.Click\r\n\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\n\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: 110%;\">Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick\r\n\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\n\r\nEnd Sub\r\n<\/pre>\n<h3><b>20.2(b) Formatting Date and time using user-defined formats<\/b><\/h3>\n<p>Besides 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<h3 align=\"center\">Table 20.4<\/h3>\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<p><strong>Example 20.4<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick\r\n\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\n\r\nEnd Sub\r\n<\/pre>\n<p>The output <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><br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-format=\"autorelaxed\"\n     data-ad-client=\"ca-pub-3033628290023372\"\n     data-ad-slot=\"5090773108\"><\/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-2015-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-2015-lesson-21-working-with-checkboxes\/\">[Lesson 21]<\/a><\/h4>\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 2015 is a very useful formatting function. It is used to display numbers in formats customized by the users. For example, to display a number with separators or without separators. It can also be used to display date &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-20-format-functions\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2015 Lesson 20: 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-7158","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 2015 Lesson 20: Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"This article discusses format functions in visual basic 2015\" \/>\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\/vb2015\/vb2015_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 2015 Lesson 20: Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"This article discusses format functions in visual basic 2015\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_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-22T10:12:41+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-2015-lesson-20-format-functions\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html\",\"name\":\"Visual Basic 2015 Lesson 20: 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\/vb2015\/vb2015_lesson20.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg\",\"datePublished\":\"2015-09-01T07:10:58+00:00\",\"dateModified\":\"2018-06-22T10:12:41+00:00\",\"description\":\"This article discusses format functions in visual basic 2015\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_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\/vb2015\/vb2015_lesson20.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2015 Lesson 20: 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 2015 Lesson 20: Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"This article discusses format functions in visual basic 2015","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\/vb2015\/vb2015_lesson20.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2015 Lesson 20: Format Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"This article discusses format functions in visual basic 2015","og_url":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_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-22T10:12:41+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-2015-lesson-20-format-functions\/","url":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html","name":"Visual Basic 2015 Lesson 20: 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\/vb2015\/vb2015_lesson20.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figre19.1.jpg","datePublished":"2015-09-01T07:10:58+00:00","dateModified":"2018-06-22T10:12:41+00:00","description":"This article discusses format functions in visual basic 2015","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson20.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_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\/vb2015\/vb2015_lesson20.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2015 Lesson 20: 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\/7158","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=7158"}],"version-history":[{"count":42,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/7158\/revisions"}],"predecessor-version":[{"id":13036,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/7158\/revisions\/13036"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=7158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=7158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=7158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}