Jump to content

formating dc:date


foluska

Recommended Posts

I'm a little unsure what dc:date is exactly but perhaps this will help you:

 

$MyTime = mktime(hour, minute, second, month, day ,Year);

 

$MyNewTime = date("d-m-Y H:i:s", $MyTime);

 

 

The mktime is 24 hours, and you can do maths in it too !

 

You can search web for help on both those functions, they are in the manual and I think they make pretty good sense.

 

If you have to you may need to split your orignal date format up as a series of strings first. As I said I am not familiar with it and the -07:00 threw me off.

Link to comment
https://forums.phpfreaks.com/topic/153776-formating-dcdate/#findComment-808525
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.