Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2004, 08:47 AM
ppenn
Guest
 
Posts: n/a
Default Date convert Problem

Hi, everyone
Does anyone knows how to convert from e.g. 1094774400 to 10/09/2004 00:00:00(today's date UK format), I am trying to write report basic on these numbers.

Many thanks.

Peter
 
Old September 10th, 2004, 05:03 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Peter,
Try this format:

yyyy/mm/dd hh:nn:ss

Let me know if it works.
John



 
Old September 10th, 2004, 09:59 PM
Registered User
 
Join Date: Jun 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The question is, what does that number represent? It looks like it might be a unix timestamp (seconds since 1970), but could be something else. Once you give that info, it might be easier.

 
Old September 13th, 2004, 02:15 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

The number is generally represented as a Unix timestamp: the number of seconds since January 1, 1970 00:00:00 Greenwich Mean Time.
John






Similar Threads
Thread Thread Starter Forum Replies Last Post
convert date NARJES VB Databases Basics 1 May 22nd, 2007 01:02 PM
Convert Julian date motupally SQL Server 2000 3 July 5th, 2006 08:12 AM
date convert keyvanjan Classic ASP Databases 2 May 15th, 2005 01:02 AM
Convert String Date to Date for a SQL Query tdaustin Classic ASP Basics 4 July 7th, 2003 06:01 PM
Convert date format ciko1973 Access VBA 3 June 18th, 2003 04:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.