summaryrefslogtreecommitdiff
path: root/src/lq/DateUtil.java
diff options
context:
space:
mode:
authorKjetil Ørbekk <orbekk@pvv.ntnu.no>2010-09-03 01:13:15 -0400
committerKjetil Ørbekk <orbekk@pvv.ntnu.no>2010-09-03 01:13:15 -0400
commit1fb83a8c3edefbc2a43d26cc6db835e592d65934 (patch)
tree73047a16e263ae3f84031bc2d82e3961d2140430 /src/lq/DateUtil.java
parentb2dd8bf148b70c3076625840f908b5c7d32e9ee1 (diff)
Quote listing
Ported the quotes.jsp page from the old quote system. This commit contains some utility classes related to this. DropData is a temporary hack to remove all data in the datastore. TODO: Remove this when we are finished migrating the application.
Diffstat (limited to 'src/lq/DateUtil.java')
-rw-r--r--src/lq/DateUtil.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lq/DateUtil.java b/src/lq/DateUtil.java
new file mode 100644
index 0000000..7b91a9a
--- /dev/null
+++ b/src/lq/DateUtil.java
@@ -0,0 +1,15 @@
+package lq;
+
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+
+public final class DateUtil {
+ public static final SimpleDateFormat dateFormat =
+ new SimpleDateFormat("yyyy-MM-dd");
+
+ public static final SimpleDateFormat timestampFormat =
+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+
+ private DateUtil() {
+ }
+}