Date conversion issue

Hi

I have a field on my form that asks for a Date and they can select it from a calendar picker.

So for example, if they select 10/30/2017, and click on the submit button this date is successfuly carried over to the form.

Now I need to convert this date to a unix timestamp… and I tried the following and it doesn’t work for me.

$date = $sAccDate;
echo date_timestamp_get($date);

It is suppose to give me a string of numbers, but I get no output.

The function you are looking for would be [FPHP]strtotime[/FPHP].

if you don’t re-assign $date then it will print the same value it was initialised with.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.