Notifications
Announcements
No record found.
Hi All,
How can i get all dates in x++
example.
Please guide me.
Regards,
Srinivas
Hi Srinivas,
Could you please describe your exact requirement here?
You can try to use DateTimeUtil::getStartOfYearDate method, then print iteratively.
date startDate, endDate; xSession xSession = new xSession(); startDate = DateTimeUtil::getStartOfYearDate(xSession.preferredLocale(), DateTimeUtil::getToday(DateTimeUtil::getUserPreferredTimeZone()));
What is your needs?
Good morning Srinivas,
There have been a couple of responses provided but I have not seen the question of Gunjan answered.
Why do you need to grab those dates by X++?
Would be great if you could explain.
Many thanks and best regards,
Ludwig
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.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional