Here you can find the source of calendar2Timestamp(Calendar c)
public static Timestamp calendar2Timestamp(Calendar c)
//package com.java2s; /**/* w ww.ja v a2 s. com*/ * Copyright © 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); */ import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Timestamp calendar2Timestamp(Calendar c) { return new Timestamp(c.getTimeInMillis()); } }