Solved

Create unique number from datetime

Posted on 2007-04-03
3
871 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

16 Experts available now in Live!

Get 1:1 Help Now