Created
September 24, 2012 19:05
-
-
Save adamcameron/3777677 to your computer and use it in GitHub Desktop.
How to create a java.sql.Date in CF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dateNow = createObject("java", "java.sql.Date").init(dateDiff("s", createDate(1970,1,1), now())*1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe that getTickCount() will also return a long:
createObject( "java", "java.sql.Date" ).init( getTickCount() )