Thnx for Your reply, but:
I use my parser for decode mySQL datetime format
function parseMySQLdate(aDate){
var matches = aDate.match(/^\s*(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})\s*$/)
, lDate = new Date()
;
if(matches){
var Y = parseInt(matches[1],10)
, M = parseInt(matches[2],10) - 1
, D = parseInt(matches[3],10)
, H = parseInt(matches[4],10)
, N = parseInt(matches[5],10)
, S = parseInt(matches[6],10)
;
lDate.setDate(D);
lDate.setMonth(M);
lDate.setFullYear(Y);
lDate.setHours(H);
lDate.setMinutes(N);
lDate.setSeconds(S);
}
return lDate;
}
so it`s not suitable for...
and db.datebox('getValue'); return string without year (because my formatter is dateFormat(aDate,"dd mmm HH:MM") )
is there a possibility to store date as Date object in date[time]box inside formatter or inside ('setValue')
and get it as Date object from ('getValue') ?
OR maybe add
.datetimebox('getDate')
.datetimebox('setDate',DateObject) ?