ash
ash

Reputation: 23

how to use formatdate

i found this in full calendar documentation:

$.fullCalendar.formatDate( date, formatString [, options ] ) -> String

the format i want my date in is dd-MM-yyyy.

can someone tell me how to correctly write this piece of code?

thanks :)

Upvotes: 2

Views: 1206

Answers (2)

Carls Jr.
Carls Jr.

Reputation: 3078

Try this:

var myFormattedDate = $.fullCalendar.formatDate(myDate, "dd-MM-yyyy");

Upvotes: 1

Ravikiran
Ravikiran

Reputation: 1448

Format of 'formatString' outlined @ http://arshaw.com/fullcalendar/docs/utilities/formatDate/.

Upvotes: 0

Related Questions