Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Create unique number from datetime

Posted on 2007-04-03
3
Medium Priority
?
907 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

604 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