?
Solved

Create unique number from datetime

Posted on 2007-04-03
3
Medium Priority
?
898 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
sun4sunday earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month12 days, 16 hours left to enroll

777 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