pplearnunix46
Programmer
Hi Friends,
I have a requirement like I need to add 15 mins to particular date format in a loop.
For Ex:
If I pass start date as 20150110000000 and end date as 20150111001500, I should get all the dates as mentioned below adding 15 mins to the date.
20150110000000(Jan 10,2015 00:00:00)
20150110001500(Jan 10,2015 00:15:00)
20150110003000(Jan 10,2015 00:30:00)
20150110004500(Jan 10,2015 00:45:00)
20150110010000(Jan 10,2015 01:00:00)
20150110011500(Jan 10,2015 01:15:00)
20150110013000(Jan 10,2015 01:30:00)
20150110014500(Jan 10,2015 01:45:00)
.
.
.
.
.
.
.
20150110234500(Jan 10,2015 23:45:00)
20150111000000(Jan 11,2015 00:00:00)
20150111001500(Jan 11,2015 00:15:00)
Can anyone please tell me how can I do it?
Thank you.
I have a requirement like I need to add 15 mins to particular date format in a loop.
For Ex:
If I pass start date as 20150110000000 and end date as 20150111001500, I should get all the dates as mentioned below adding 15 mins to the date.
20150110000000(Jan 10,2015 00:00:00)
20150110001500(Jan 10,2015 00:15:00)
20150110003000(Jan 10,2015 00:30:00)
20150110004500(Jan 10,2015 00:45:00)
20150110010000(Jan 10,2015 01:00:00)
20150110011500(Jan 10,2015 01:15:00)
20150110013000(Jan 10,2015 01:30:00)
20150110014500(Jan 10,2015 01:45:00)
.
.
.
.
.
.
.
20150110234500(Jan 10,2015 23:45:00)
20150111000000(Jan 11,2015 00:00:00)
20150111001500(Jan 11,2015 00:15:00)
Can anyone please tell me how can I do it?
Thank you.