hello,
i need to use Format Function in select query in C#.NET.
my requirement is i need to display date in formated manner such as "01-Jan-2001"
but data grid in my forms C# shows "1/1/01" i need it on "01-Jan-2001" this format
what can i do.
hello,
i need to use Format Function in select query in C#.NET.
my requirement is i need to display date in formated manner such as "01-Jan-2001"
but data grid in my forms C# shows "1/1/01" i need it on "01-Jan-2001" this format
what can i do.
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
Jan MontanoRank #1,295 · 1.3K reputationPosted Aug 14, 2007, 12:16 AM EDT
select substring(convert(varchar,getDate(),113),1,11)
113 is the style for dd mmm yyyy time