Page 1 of 1

Just getting datepart from a timestamp

PostPosted: Tue Apr 01, 2008 10:16 am
by martinh
I would like to have an optional parameter dateOnly in Application.getTimeStamp()
So like this:


If date_only is true, then all timefields of the Timestamp must be zero

Or another function


That would be equal to me

Now when I have a TimeStamp must reset the timeparts.
This extra method or parameter would save me time, and it makes also clear if you want a date or a time returned

I posted this as a feature request

PostPosted: Tue Apr 01, 2008 12:06 pm
by Harjo
I vote for this too!

did you request already in the support system?

PostPosted: Tue Apr 01, 2008 12:10 pm
by martinh
Yes, I even got reply:

Status: closed-won't fix
The object retured is a date object containing all kind of fields even milliseconds, if you want date only, format as a string Also javascript does not support date objects with out time, since we are bound to JS we cannot fullfill this request.

I replied on that:

I don't ask for a date object without time, I ask a date object where time is 0