Jump to content
We've recently updated our Privacy Statement, available here ×

convert string to date


fwhorton

Recommended Posts

hello: I know this has been asked but I still cannot convert any string "01/01/01" or "01/01/2001" to a date variable. I have tried new SimpleDateFormat("dd/MM/yy").parse("01/01/01") but I get a null. I am running a query that is using a date parameter but the chart comes back blank if a date is not being passed into the query, so I think. So I want to create a default date. Any suggestions? Thanks.
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I figured it out... the field's evaluation time needs to be set to "Report". Other settings that must be noted is setting the variable's Calculation Type to "First" and reset type = "None".

Post edited by: fwhorton, at: 2007/03/22 20:33

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...