Skip to content

Instantly share code, notes, and snippets.

System.out.println("JVM VERSION: " + System.getProperty("java.vm.version"));
(.toUpperCase "clojure with java")
String s = "clojure with java";
System.out.println(s.toUpperCase());
(.format (SimpleDateFormat. "MM/dd/yyyy") (Date.)) ;; result: "08/19/2017"
(.format sdf (Date.)) ;; result: "08/19/2017"
(.format (SimpleDateFormat. "MM/dd/yyyy") date) ;; result: "08/19/2017"
(.format sdf date) ;; result: "08/19/2017"
(.format (SimpleDateFormat. "MM/dd/yyyy") (Date.))
(.format sdf (Date.))
(.format (SimpleDateFormat. "MM/dd/yyyy") date)
(.format sdf date)
(def date (Date.))
(def sdf (SimpleDateFormat. "MM/dd/yyyy"))
(:import
java.util.Date
java.text.SimpleDateFormat)
import java.util.Date;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.text.SimpleDateFormat;
public class Example{
public static void main(String args[]){
SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy");
String date = sdf.format(new Date());
System.out.println(date);
{% extends "base.html" %}
{% block content %}
<div class="row">
<h1>HELLO WEBAPP CLOJURE</h1>
</div>
{% endblock %}