SHARE
TWEET

Ubah Format Data dari 201612 Ke Desember 2016

stevennathaniel Feb 20th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Imports System
  2.  
  3. Imports System.Globalization
  4.  
  5. Module Module1
  6.  
  7.     Sub Main()
  8.  
  9.         Dim tanggal1 As String = "201612"
  10.  
  11.         Dim format As String
  12.  
  13.         Dim tanggal2 As Date
  14.  
  15.         Dim provider As Globalization.CultureInfo = Globalization.CultureInfo.InvariantCulture
  16.  
  17.         format = "yyyyMM"
  18.  
  19.         tanggal2 = Date.ParseExact(tanggal1, format, provider)
  20.  
  21.         Console.WriteLine(tanggal2.ToString("MMMM yyyy"))
  22.  
  23.         Console.ReadLine()
  24.  
  25.  
  26.     End Sub
  27.  
  28. End Module
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top