Just getting datepart from a timestamp

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Just getting datepart from a timestamp

Postby martinh » Tue Apr 01, 2008 10:16 am

I would like to have an optional parameter dateOnly in Application.getTimeStamp()
So like this:

Application.getTimeStamp([date_only])

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

Or another function

Application.getDateStamp()

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
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium

Postby Harjo » Tue Apr 01, 2008 12:06 pm

I vote for this too!

did you request already in the support system?
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4296
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby martinh » Tue Apr 01, 2008 12:10 pm

Yes, I even got reply:

Status: closed-won't fix
Resolution:
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
Martin
------------------------------------------------
Servoy Developer
Version 5.2.10/5.2.13
Java version 1.6 update 31
Database SQL Server 2008 R2
martinh
 
Posts: 857
Joined: Wed May 09, 2007 5:34 pm
Location: Belgium


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest