Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
かなり簡単です... EntityDataSource があり、Select プロパティでさまざまなフィールドを取得しています。そのうちの 1 つは、「MM/dd/yyyy」形式で返したい日付です。どうすればこれを達成できますか?
.ToString(Format Here) を使用できます
DateTime time = EDS.Field; Console.WriteLine(time.ToString(MM/dd/yyyy));