Ask a Question related to ASP Database, Design and Development.
-
Stephen Cairns #1
Pop-up Calendar
I have some script (below) which is returning the date from a pop-up calendar. My problem is that the date is being returned in a dd/mm/yyyy format. However I need to be come back with a dd/mm/yy format. Is there anything simple I can do with the code to achieve this
function y2k(number) { return (number < 1000) ? number + 1900 : number;
var today = new Date()
var day = today.getDate()
var month = today.getMonth()
var year = y2k(today.getYear())
function padout(number) { return (number < 10) ? '0' + number : number;
function restart()
document.accounting.date.value = '' + padout(day) +'/' + padout(month - 0 + 1) + '/' + year
mywindow.close();
Stephen Cairns Guest
-
calendar
How do you place a calendar in forms? -
2006 calendar needed for photo calendar
I want to start work on a 2006 calendar featuring my own photographs. In Photoshop there used to be a calendar-creating feature that worked well,... -
asp calendar
Can some of you point me to some website with good asp calendars. I did a search on the google but didn't find a whole lot . Thanks -
Calendar 9.0
There are several calendars with the code to do that on my website: http://www.datastrat.com/Download/XCalendar2K.zip and... -
calendar asp
Hello Everyone, I have a calendar http://thehihat.com/calendar/default.asp?month=6&year=2003 What I need to do is be able to add a graphic to the... -
Bob Barrows #2
Re: Pop-up Calendar
Stephen Cairns wrote:
You need to ask this on the .scripting.jscript group.> I have some script (below) which is returning the date from a pop-up
> calendar. My problem is that the date is being returned in a
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Raymond D'Anjou \(raydan\) #3
Re: Pop-up Calendar
Why not just do something like this:
dateValue.slice(0, 6) + dateValue.slice(8)
"Stephen Cairns" <S.Cairns@belfasttelegraph.co.uk> wrote in message
news:63A11B8E-6422-4355-8D9D-F1DC9692F0F5@microsoft.com...calendar. My problem is that the date is being returned in a dd/mm/yyyy> I have some script (below) which is returning the date from a pop-up
format. However I need to be come back with a dd/mm/yy format. Is there
anything simple I can do with the code to achieve this.number; }>
> function y2k(number) { return (number < 1000) ? number + 1900 :padout(month - 0 + 1) + '/' + year;>
> var today = new Date();
> var day = today.getDate();
> var month = today.getMonth();
> var year = y2k(today.getYear());
>
> function padout(number) { return (number < 10) ? '0' + number : number; }
>
> function restart() {
> document.accounting.date.value = '' + padout(day) +'/' +> mywindow.close();
Raymond D'Anjou \(raydan\) Guest
-
Stephen Cairns #4
Re: Pop-up Calendar
where abouts should I add this piece of code
Stephen Cairns Guest
-
Raymond D'Anjou \(raydan\) #5
Re: Pop-up Calendar
Kind of depends what you are doing.
The code I gave you was in javaScript since you posted javaScript code,
but I would guess from the newsgroup you posted to that you are using ASP to
write to a database.
Tell us a bit more of what you are trying to do.
"Stephen Cairns" <S.Cairns@belfasttelegraph.co.uk> wrote in message
news:92D859CF-DCBA-4298-883E-5883DA6D3674@microsoft.com...> where abouts should I add this piece of code
Raymond D'Anjou \(raydan\) Guest



Reply With Quote

