Notifications
Announcements
No record found.
Hi Everyone,
I am trying to use only Date from the DateTime field ("Created on" field). I am using the below C# code:
"string date = targetEntity.FormattedValues["createdon"].ToString();"
But it is giving the time also along with the date, how can I remove the time or how can I fetch only the date?
Hi Tarun,
You can use DateTime.ParseExact(string s, string format, IFormatProvider? provider) to convert into a date-only format.
(+) C# code to convert string to date without time - Microsoft Dynamics CRM Forum Community Forum
Thank you, Leah Ju.
Hi Partner,
Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.
Thanks in advance!:)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 61 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 42 Most Valuable Professional