Formattering af datoer

<!doctype html>
<html lang="en">
     <meta charset="utf-8" />
     <title>jQuery UI Datepicker - Default functionality</title>
     <link rel="stylesheet" href="" />
     <script src=""></script>
     <script src=""></script>
     <link rel="stylesheet" href="/resources/demos/style.css" />
     // denne funktion formatterer til noget som MySql forstår
     $(function() {
       $( "#datepicker" ).datepicker({dateFormat: 'yy-mm-dd'});

<p>Date: <input type="text" id="datepicker" />


I kanbanprototypen er det et problem, at brugeren selv skal formattere datoen på “amerikansk manér”. Det ville være smartere med jQuerys datepicker. Denne kode virker:

By Per Thykjaer Jensen

Per is the WordPress expert at Business Academy Aarhus. Senior Lecturer at the Multimedia Design Programme. His background is in the Arts: MA Literature History and BA Art History. Later he added a MA in IT, interaction and Multimedia. And he is a wicked Linux user.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

We use cookies - is it ok with you+ more information will set a few cookies from Doubleclick, Google and the Social Media plugins they ay set some cookies.