timestamp default value

Hi, I want create a default value for my paramter of type timestamp. The value can be like this "2014/01/08 00:00:00" and other parameter "2014/01/08 23:59:59". How I do this?


natansouzag's picture
Joined: Dec 21 2013 - 10:51am
Last seen: 9 years 8 months ago

2 Answers:

Convert your timestamp to num millisecs since epoch (01.jan.1970) then set the default value as 

new java.util.Timestamp(<nummillisecs>)

To get the millisecs use:








barry-cw's picture
Joined: Dec 18 2013 - 4:43pm
Last seen: 9 years 8 months ago

Also try this site Unix Epoch Time Converter

rsneha027's picture
Joined: Nov 29 2020 - 11:45pm
Last seen: 2 months 5 days ago