01-19-2013 12:02 PM
Hello friends, how are you? Happy weekend.
I have a problem, well two problems the first simple
This code is to display the date.
Label {
id: title
text: {
var today = new Date();
"Hoy es: " + (today.getDate() + "/" + today.getMonth() +1) + "/" + (today.getFullYear());
}
}
ut do not get the command to display the time. As serious to show time ..?
My other question is, implement the BatterySample in my application and it works perfectly, it looks great. But I want to add
1) Percentage or battery level in Number
2) The pin from my BlackBerry
3) Serial
4) BlackBerry OS
5) Model
Not understand the examples correctly, since no documents but not appreciated as implement.
01-27-2013 07:54 PM
[Help] Time and Information BlackBerry in my application
01-27-2013 08:44 PM
Marco, you should break up your post into 2, since you're asking 2 questions. I'll address the first one:
import bb.cascades 1.0
Page {
Container {
Label {
text: {
var today = new Date();
"Hoy es: " + (today.getDate() + "/" + (today.getMonth()+1) + "/" + today.getFullYear());
}
}
}
}
That code works perfectly for me.