View Full Version : Problem in lcd.

21st June 2011, 11:33
i want to show date and time both on lcd in this format "Thur June 21 2011 15:03" but i am getting only time.
How i can do it.

21st June 2011, 11:47
What is "lcd"?

QDateTime::currentDateTime().toString ( "ddd MMMM dd yyyy hh:mm" ) ;

21st June 2011, 12:02
i am already have feteched date and time but this is not displaying on lcd, this is my problem and i am talking about QLcdNumber.

21st June 2011, 12:10
From documentation:

These digits and other symbols can be shown: 0/O, 1, 2, 3, 4, 5/S, 6, 7, 8, 9/g, minus, decimal point, A, B, C, D, E, F, h, H, L, o, P, r, u, U, Y, colon, degree sign (which is specified as single quote in the string) and space. QLCDNumber substitutes spaces for illegal characters.