Can I include a modified datetime in the response via a JSON definition?
See original GitHub issueIām trying to add an hour to the current DateTime and include that new DateTime in the response.
I know I can get the current DateTime via
{{DateTime.Now}}
But I canāt see how I can manipulate this.
I wondered about using Handlebars and splitting the string, then using an each and ifās to manipulate it, but I canāt seem to nest the response value of {{DateTime.Now}} into a handlebars expression.
Is nesting {{}} within each other across handlers not supported I take it, i.e. the inner customer handler for {{DateTime}} isnāt completed and substituted before the result is passed to handlebars for the {{each}} to be processed by that library.
EDIT: I originally misunderstood what Humanizer DateTime did and initially thought it could help with adding an hour to the time. hence the title and content change.
Issue Analytics
- State:
- Created 7 months ago
- Comments:7

Top Related StackOverflow Question
I know itās very late, but yes. the date modification works nicely, thanks. š
@MichaelIDS No problem, Iāll just merge the changes to master, and in the next days Iāll create a new NuGet.
Iāll close this issue and if you have another question, just raise a new issue.