DateTimeFormatInfo.LongDatePattern プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As DateTimeFormatInfo Dim value As String value = instance.LongDatePattern instance.LongDatePattern = value
/** @property */ public String get_LongDatePattern () /** @property */ public void set_LongDatePattern (String value)
public function get LongDatePattern () : String public function set LongDatePattern (value : String)
"D" 形式指定文字に関連付けられた長い日付の値の形式パターン。


たとえば、"dddd, dd MMMM yyyy" のように、カスタム パターンを構築するために組み合わせることができるパターンについては、DateTimeFormatInfo のトピックを参照してください。

いくつかのカルチャの LongDatePattern の値を表示するコードの例を次に示します。
Imports System Imports System.Globalization Public Class SamplesDTFI Public Shared Sub Main() ' Displays the values of the pattern properties. Console.WriteLine(" CULTURE PROPERTY VALUE") PrintPattern("en-US") PrintPattern("ja-JP") PrintPattern("fr-FR") End Sub 'Main Public Shared Sub PrintPattern(myCulture As [String]) Dim myDTFI As DateTimeFormatInfo = New CultureInfo(myCulture, False).DateTimeFormat Console.WriteLine(" {0} {1}", myCulture, myDTFI.LongDatePattern) End Sub 'PrintPattern End Class 'SamplesDTFI 'This code produces the following output. The question marks take the place of native script characters. ' ' CULTURE PROPERTY VALUE ' en-US dddd, MMMM dd, yyyy ' ja-JP yyyy'?'M'?'d'?' ' fr-FR dddd d MMMM yyyy '
using System; using System.Globalization; public class SamplesDTFI { public static void Main() { // Displays the values of the pattern properties. Console.WriteLine( " CULTURE PROPERTY VALUE" ); PrintPattern( "en-US" ); PrintPattern( "ja-JP" ); PrintPattern( "fr-FR" ); } public static void PrintPattern( String myCulture ) { DateTimeFormatInfo myDTFI = new CultureInfo( myCulture, false ).DateTimeFormat; Console.WriteLine( " {0} {1}", myCulture, myDTFI.LongDatePattern ); } } /* This code produces the following output. The question marks take the place of native script characters. CULTURE PROPERTY VALUE en-US dddd, MMMM dd, yyyy ja-JP yyyy'?'M'?'d'?' fr-FR dddd d MMMM yyyy */
using namespace System; using namespace System::Globalization; void PrintPattern( String^ myCulture ) { CultureInfo^ MyCI = gcnew CultureInfo( myCulture,false ); DateTimeFormatInfo^ myDTFI = MyCI->DateTimeFormat; Console::WriteLine( " {0} {1}", myCulture, myDTFI->LongDatePattern ); } int main() { // Displays the values of the pattern properties. Console::WriteLine( " CULTURE PROPERTY VALUE" ); PrintPattern( "en-US" ); PrintPattern( "ja-JP" ); PrintPattern( "fr-FR" ); } /* This code produces the following output. The question marks take the place of native script characters. CULTURE PROPERTY VALUE en-US dddd, MMMM dd, yyyy ja-JP yyyy'?'M'?'d'?' fr-FR dddd d MMMM yyyy */
import System.* ; import System.Globalization.* ; public class SamplesDTFI { public static void main(String[] args) { // Displays the values of the pattern properties. Console.WriteLine(" CULTURE PROPERTY VALUE"); PrintPattern("en-US"); PrintPattern("ja-JP"); PrintPattern("fr-FR"); } //main public static void PrintPattern(String myCulture) { DateTimeFormatInfo myDTFI = (new CultureInfo(myCulture, false)).get_DateTimeFormat(); Console.WriteLine(" {0} {1}", myCulture, myDTFI.get_LongDatePattern()); } //PrintPattern } //SamplesDTFI /* This code produces the following output. The question marks take the place of native script characters. CULTURE PROPERTY VALUE en-US dddd, MMMM dd, yyyy ja-JP yyyy'?'M'?'d'?' fr-FR dddd d MMMM yyyy */

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDateTimeFormatInfo.LongDatePattern プロパティを検索する場合は、下記のリンクをクリックしてください。

- DateTimeFormatInfo.LongDatePattern プロパティのページへのリンク