Solved

Create unique number from datetime

Posted on 2007-04-03
3
874 Views
Last Modified: 2007-12-19
Hi, can anyone help me on this one

I want to create a unique nummer from an datetime in delphi 2006, and use this number in an invoice program.
0
Comment
Question by:marioway
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
sun4sunday earned 500 total points
ID: 18848364
If you are removing the / from the datetime with Milliseconds will give a unique number. Hope your applicaiton never comes to clash milliseconds . If possible take datatime from the server(depends on your appliciton)

yyyy/mm/dd/hh/mm/ss/ms to yyyymmddhhmmssms   will give the unique number .

sun4sunday
0
 

Author Comment

by:marioway
ID: 18848676
Hi, thank you very much sun4sunday

kind regards
Marioway
0
 
LVL 9

Expert Comment

by:sun4sunday
ID: 18880254
No probs
Cheers
Cipson
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now