Hi, I have an Express server that has to do an external API request using the format:/api/{locationId}//power/usage?period=?&startTime=2019-11-12 05:00:00.0&endTime=2019-11-12 7:00:00.0I need to be able to get the current date and time and put it as the the last 15 minute interval for the endTime and automatically have the startTime as 24 hours previous to the EndTime.Does anybody have an idea of how to do this? Your help is very appreciated.
Submitted December 20, 2019 at 11:54AM by mrcandyman
No comments:
Post a Comment