I used the following function to get date + HM (using vlibDate):
/////
// Rearranges date and time like strftime would do. Uses vlibDate.
// source 2002-06-17 111000 = german example Mon, 17. Jun 2002 - 1117
// @param datetime � db_date --- c_open, c_accept, c_closed ... db_dates = DATETIME
// @return �string � � new_date --- Mon, 17. Jun 2002 - 1117
function format_datedb_date
{
global lang, display_date;
if issetdb_date
{
�if DEBUG echo br Error Date is not set;
�// new_date stays null for empty values in the database
}
else
{
�vlib_lang = substrlang, 0, 2;
�date = new vlibDatevlib_lang;
�old_date = explode , db_date;
�new_date = date-formatDateold_date0, display_date . substrold_date1, 0, 5;
}
return new_date;
/* what happens in this function
* �vlib_lang = substrlang, 0, 2; = vlib_lang = the first 2 chars of �
* �every lang variable english en, deutsch de, espanol es, etc.
* �old_date = explode|...|; = old_date0 = 2002-06-17; �old_date1 = 111000;
* �date-formatDateold_date0,|...|; = Mon, 17. Jun 2002 -
* �substrold_date1, 0, 5; = 1117
*/
}
I hope this will help you.
Regards,
Claus