Whats is Meaning in Start 0 in DataFormatString = "{0:MM/dd}
Whats is Meaning in Start 0 in DataFormatString = "{0:MM/dd/yyyy}
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Nov 27, 2016, 1:31 AM EST
String.Format("{0:MM/dd/yyyy}", dt);
Here 0 as first paramter as dt object which converts date time object to required format.