Hi All,
How can i get all dates in x++
example.
1/1/2020 |
1/2/2020 |
1/3/2020 |
1/4/2020 |
1/5/2020 |
1/6/2020 |
1/7/2020 |
1/8/2020 |
1/9/2020 |
1/10/2020 |
Please guide me.
Regards,
Srinivas
Hi All,
How can i get all dates in x++
example.
1/1/2020 |
1/2/2020 |
1/3/2020 |
1/4/2020 |
1/5/2020 |
1/6/2020 |
1/7/2020 |
1/8/2020 |
1/9/2020 |
1/10/2020 |
Please guide me.
Regards,
Srinivas
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
Hi Srinivas,
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?
Hi Srinivas,
Could you please describe your exact requirement here?
André Arnaud de Cal...
294,261
Super User 2025 Season 1
Martin Dráb
233,013
Most Valuable Professional
nmaenpaa
101,158
Moderator