The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
DATEPICKER Display
Posted: 25 Jul 06 7:39 AM
|
fiogf49gjkf0d <td> <#DATEPICKER name="NPolBeginDt" format=3 formatstring=%dddd", "mmmm" "d", "yyyy value=datetime size=35 style="width:145px"> </td>
Is there a way we can get it to format it as Tuesday, July 25, 2006 on display and then select the date with the Datepicker control?Also i have the table column declared with the Date datatype.A and S are the options available for this and i dont think i can use that in this case.
Also i know that that is not the way to specify custom formatting.Should i do this instead?
formatstring="%dddd', 'mmmm' 'd', 'yyyy " |
|
|
|
Re: DATEPICKER Display
Posted: 28 Jul 06 4:26 PM
|
fiogf49gjkf0d Any Luck Anyone?
Tried Opening a ticket with SLX too...but no luck till now. |
|
|
|
Re: DATEPICKER Display
Posted: 29 Jul 06 10:05 AM
|
fiogf49gjkf0d Nandu I haven't tested this but it should be dddd/mmmm/yyyy
Details below are from the Web Developers Reference Help
dddd Displays the day as a full name (Sunday-Saturday) using the strings given by the LongDayNames global variable.
mmmm Displays the month as a full name (January-December) using the strings given by the LongMonthNames global variable. yyyy Displays the year as a four-digit number (0000-9999). |
|
|
|
Re: DATEPICKER Display
Posted: 29 Jul 06 10:56 AM
|
fiogf49gjkf0d This formatstring does look right to me either. Should it be.
format=3 formatstring="dddd', 'mmmm d', 'yyyy"
You might try this to start with
format=3 formatstring="dddd mmmm d yyyy"
|
|
|
|
Re: DATEPICKER Display
Posted: 29 Jul 06 1:24 PM
|
fiogf49gjkf0d Nandu,
I was sure I had done something like this at one time so I poked around and found out what I did. I was not using the DatePicker object but I did display the WeekDay and the date. I used two fields to format the data.
<#FIELD name=disbdate format=3 formatstring=dddd>, <#FIELD name=disbdate format=3 formatstring=mm/dd/yyyy>
Hope this helps. |
|
|
|
Re: DATEPICKER Display
Posted: 30 Jul 06 10:51 AM
|
fiogf49gjkf0d Tried that Duncan ...No luck...Seems no dat formatting is working in 6.2.4 |
|
|
|
Re: DATEPICKER Display
Posted: 30 Jul 06 11:13 AM
|
fiogf49gjkf0d I think you're right, I just had a little play myself and it seems to ignore any formatting you apply....looks like a bug. |
|
|
|
Re: DATEPICKER Display
Posted: 30 Jul 06 11:17 AM
|
fiogf49gjkf0d frank , do you know why finally you had to do it that way? is that because the datepicker didnt work ?i have to use in a data entry screen and <#DP is the best way to go....sure i can do this in javascript , but DP is availble for a reason, correct?
also can you get this datepicker to do any formatting other than the regular mm/dd/yyyy?
also have you seen the html getting generated behind the scenes for all the options of a datepicker?
thanks!! |
|
|
|
Re: DATEPICKER Display
Posted: 30 Jul 06 11:27 AM
|
fiogf49gjkf0d hehe....quite funny when the same thing can be done thru javascript and html with no problems in 10 minutes!.
But in the learning phase you tend to use the controls as much as possible.. |
|
|
|
Re: DATEPICKER Display
Posted: 30 Jul 06 12:33 PM
|
fiogf49gjkf0d Originally posted by Nandu
frank , do you know why finally you had to do it that way? is that because the datepicker didnt work ?i have to use in a data entry screen and <#DP is the best way to go....sure i can do this in javascript , but DP is availble for a reason, correct? |
|
As I recall it was because I could not have a space in the formatstring.
also can you get this datepicker to do any formatting other than the regular mm/dd/yyyy? |
|
No.
also have you seen the html getting generated behind the scenes for all the options of a datepicker? |
|
No. |
|
|
|
Re: DATEPICKER Display
Posted: 31 Jul 06 3:08 AM
|
fiogf49gjkf0d Is there no DateTimeEdit control for the web? The picker on the LAN client was a royal pain to work with. Perhaps it's because it was taken from the web and that's why it acts so goofy?
What about the HTML escaped version of space? There's (percent)20 and (ampersand)nbsp I think they are. I would think that wouldn't be an issue here but I've seen weirder. |
|
|
|
Re: DATEPICKER Display
Posted: 31 Jul 06 7:58 AM
|
fiogf49gjkf0d Originally posted by Jeremy Brayton
What about the HTML escaped version of space? There's (percent)20 and (ampersand)nbsp I think they are. I would think that wouldn't be an issue here but I've seen weirder. |
|
As I recall this syntax does not in the formatstring either. |
|
|
|