Hello,
I am attempting to build a calendar system using a
Bootstrap 3 (and 2) JavaScript calendar.
I plan to use Resources (in combination with
Collections) to build events and use getResources to build out the appropriate JSON file that the Calendar gets it's events from.
A typical example of a JSON event is:
{
"id": "293",
"title": "This is information class event",
"url": "http://www.example.com/",
"class": "event-info",
"start": "1362938400000",
"end": "1363197686300"
}
Easy enough to use Resource and template variables to build this but, not being a programmer, I'm not sure how to convert the value of the Date TVs into milliseconds, as required in the JSON entry for each event.
If I select say February 16, 2014, 12:00pm using a Date type TV with an output to default I get:
2014-02-16 12:00:00
Which is great of course.
Setting the output to default I know we can use the typical %Letter syntax, but I don't see how to use that to create a millisecond output.
Any suggestions?