Hi Dan
Thanks for this. I think I have to say that in 6 years I have not 
noticed it not working then. In the past it has not been called for 
say a month at time. Now I am calling it every day I suspect that now 
I am spotting the failure.

Can you give me any guidance as to how to ensure only 10 digits are 
returned?

Many thanks

Martin

--- In [EMAIL PROTECTED], "Dan Powderhill" 
<[EMAIL PROTECTED]> wrote:
> As far as I'm aware the Month(), Day(), Hour() and Minute() 
functions
> will return a single digit if the respective part of the date is 9 
or
> under, and two digits if it is 10 or greater. I'm confused as to how
> it's been working the way you suggest for 6 years though - unless 
it's
> something to do with the date settings on your machine perhaps - 
have
> they changed recently?
> 
>  
> 
> Dan
> 
>  
> 
> ________________________________
> 
> From: Martin [mailto:[EMAIL PROTECTED] 
> Sent: 29 November 2004 11:23
> To: [EMAIL PROTECTED]
> Subject: [AspClassicAnyQuestionIsOk] Newbie question unique 10 
digits
> 
>  
> 
> 
> 
> Hi
> 
> I have been using the following for 6 years to generate a unique 
> transaction number.
> 
> <%
> Function uniqueID()
>     a = Now()
>     uniqueID = Year(a)-2004 & Month(a) & Day(a) & Hour(a) & Minute
(a) 
> & Second(a)
> End Function
> %>
> 
> Until yesterday this has always given me a 10 digit number.I MUST 
> have a 10 digit number.
> 
> Now I am getting 11 digits!!
> 
> Can anyone shed some light on this? If not is there a way I can 
> restrict the number to 10 digits and still make it unique?
> 
> Many Thanks
> 
> Martin 
> PS  ASP skills VERY basic
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> ADVERTISEMENT
> click here
> 
<http://us.ard.yahoo.com/SIG=1290q3gue/M=298184.5639630.6699735.300117
6/
> 
D=groups/S=1705006764:HM/EXP=1101817848/A=2434971/R=0/SIG=11eeoolb0/*h
tt
> p:/www.netflix.com/Default?mqso=60185400> 
> 
>  
> <http://us.adserver.yahoo.com/l?
M=298184.5639630.6699735.3001176/D=group
> s/S=:HM/A=2434971/rand=892903802> 
> 
>  
> 
> ________________________________
> 
> Yahoo! Groups Links
> 
> *     To visit your group on the web, go to:
>       http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
>         
> *     To unsubscribe from this group, send an email to:
>       [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
subject=Un
> subscribe> 
>         
> *     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> 
> [Non-text portions of this message have been removed]





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to