473,511 Members | 10,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can i retrive a Date and Time?


i would like to use date and time to name as my file name..
But how can i retrieve a Date and Time??
For example, now is 30/1/05(dd:mm:yy) , 13.06.30(hh:mm:ss)
i would like to name my file as 050130130630.txt
So how can i do that?
Thks for helping

--
Giap
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 17 '05 #1
1 871
"Giap" <Gi*********@mail.codecomments.com> wrote in message
news:Gi*********@mail.codecomments.com...
i would like to use date and time to name as my file name..
But how can i retrieve a Date and Time??
For example, now is 30/1/05(dd:mm:yy) , 13.06.30(hh:mm:ss)
i would like to name my file as 050130130630.txt
So how can i do that?


You can get the binary components of the time and date by calling
GetLocalTime() or GetSystemTime() if you want UTC.

It is for as simple a displayable format as you have, but you can use
GetDateFormat() and GetTimeFormat() to format the binary data.

Regards,
Will
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1691
by: TdarTdar | last post by:
Hello, what is the code to get the running applications "ApplicationId" Thanks Tdar
2
1696
seshu
by: seshu | last post by:
Hi everybody this is seshu i have a small doubt while designing an application in my application i am supposed to use a query to retrive the data asume names and purchase...
4
2006
by: PerumalSamy | last post by:
Hi, i am doing program in asp.net using vb coding and MS Access as back end. i am having a table with date field and manipulation is based on the same. i am inserting value from textbox...
0
1598
nehashri
by: nehashri | last post by:
hi, I need one help regarding Asp with MsAccess database. Problem. ======== i want to retrive stored image from the MSAccess database using asp.
2
1694
by: jaydeepsinh | last post by:
Hi, I have a SQL server 2000 as database. From database i want retrive date in dd/mm/yyyy format. i m using .net 1.0 and C#.. Can anyone help me..regarding this. Thanks in advance.
2
2217
by: gahoi | last post by:
all off you hru we need to help for one problum create to me in database i am develop the login page and we save the user name, password and email address in table and we have retrive the...
2
1894
idsanjeev
by: idsanjeev | last post by:
hello how can retrive the input text after submit button pressed and report a error message. i wants to post topic and if any error message is occured then retrive the inputed text but it forget its...
1
2970
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
3
2076
by: Eminosoft | last post by:
The below code can't take the images.plz tell that what is the problem in that code <?php // Connect to database $errmsg = ""; if (! @mysql_connect("localhost","root","sreeni")) { ...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.