Views: 211
Rating: 0

MDateTime

Submitted By: root
Licence: PRADO

Generates a TLiteral with current timestamp. Or if you set the Text attribute to an unix timestamp it will use this instead.

Files
1.47 KB
68 downloads
MDateTime.php



Info

MDateTime is only a tiny component to display the current date or time in a preformatted way.

The following will be display the current datetime in this way: 2006-05-03 17:34:51.

Code:
<com:MDateTime Format="Y-m-d H:i:s" />

You can set all known date() format values to get the datetime display modified.

I hope you enjoy it



Please note: This is currently a beta preview and has known bugs. Please see the PRADO forums if you have suggestions or problems using it.