Skip to main content
Tweeted twitter.com/#!/StackSalesforce/status/426930881383899136
added 90 characters in body
Source Link
tony danza
  • 500
  • 1
  • 11
  • 22

I'm passing a date/time field as a parameter to a page like this:

&startDate={!object.Start_date__c}

Start_date__c in object is a Date/Time field.

But when I open the link I get this error:

System.TypeException: Invalid date/time 

In the page I'm linking with that parameter, which I can not modify for now, I can see that this is the line that generates the error:

DateTime startDate  =   DateTime.valueOf(startDateInputString);

How can I modify the parameter in input to make this work?

The problem seems to be that I'm passing 01-24-2013 1.00 with a blank space in my url. Thanks

I'm passing a date/time field as a parameter to a page like this:

&startDate={!object.Start_date__c}

Start_date__c in object is a Date/Time field.

But when I open the link I get this error:

System.TypeException: Invalid date/time 

In the page I'm linking with that parameter, which I can not modify for now, I can see that this is the line that generates the error:

DateTime startDate  =   DateTime.valueOf(startDateInputString);

How can I modify the parameter in input to make this work? Thanks

I'm passing a date/time field as a parameter to a page like this:

&startDate={!object.Start_date__c}

Start_date__c in object is a Date/Time field.

But when I open the link I get this error:

System.TypeException: Invalid date/time 

In the page I'm linking with that parameter, which I can not modify for now, I can see that this is the line that generates the error:

DateTime startDate  =   DateTime.valueOf(startDateInputString);

How can I modify the parameter in input to make this work?

The problem seems to be that I'm passing 01-24-2013 1.00 with a blank space in my url. Thanks

Source Link
tony danza
  • 500
  • 1
  • 11
  • 22

date/time - date conversion problem

I'm passing a date/time field as a parameter to a page like this:

&startDate={!object.Start_date__c}

Start_date__c in object is a Date/Time field.

But when I open the link I get this error:

System.TypeException: Invalid date/time 

In the page I'm linking with that parameter, which I can not modify for now, I can see that this is the line that generates the error:

DateTime startDate  =   DateTime.valueOf(startDateInputString);

How can I modify the parameter in input to make this work? Thanks