473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how do i convert days from december 31 1967 to a conventional date

how do i convert from pick os internal date to microsoft access
Dec 22 '10 #1
1 1556
gershwyn
122 100+
There are a couple ways to do it, depending on what you want to do precisely. Assuming you have a string with the value "December 31 1967", you could convert it to the date data type with the DateValue function
Expand|Select|Wrap|Line Numbers
  1. DateValue("December 31 1967")
or use the Format function to change it into a string with a different format.
Expand|Select|Wrap|Line Numbers
  1. Format("December 31 1967", "mm/dd/yyyy")
  2. Format("December 31 1967", "ddd, m/d")
  3. Format("December 31 1967", "m-d-yy")
Output:
Expand|Select|Wrap|Line Numbers
  1. 12/31/1967
  2. Sun, 12/31
  3. 12-31-67
I would suggest reading the help file entries for those two functions to learn more about how they work.
Dec 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Hector A | last post by:
Hi I'm trying to convert a string that already looks like a date to a date that I can use when I pass it from java to the database. I receive the date in format yyyy-mm-dd and I need it to be a...
6
by: John A Grandy | last post by:
what's the preferred method in vb.net to convert a String to a Date .... ?
1
by: abcabcabc | last post by:
I write an application which can let user define own date format to input, How to convert the date string to date value with end-user defined date format? Example, User Defined Date Format as...
29
by: Santiagoa | last post by:
If I set up a task table with an Date_assigned and a number of days to complete the task I calculate the end_date field by using the code below I found in this forum How ever when I enter the...
2
by: ltazz | last post by:
i need to know how to get a number of days output for the date ranges of 10/1/2006 to 09/30/2007 for individuals with start and stop dates that are either before or after the dates above. i can get...
4
by: nagarwal | last post by:
Hi All, I am having prblm in adding the no. of days passed to the current date, in a class fuction. This is an immediate requirment plz help.. I am using java.util.Date object for the current...
5
by: Fareast Adam | last post by:
how to add several days to the current date using php? here my php code $time = gmdate('Y-m-d H:i:s a'); what i mean is i want to add 2 days on the current date. how can i do this? your help...
1
by: Del | last post by:
I have a parameter query that requires the user to enter a Start Date: and End Date: and pull data between that date range. I am currently using the following parameter; Select * From mytable...
9
by: magdy | last post by:
I want to convert numbers like 1217508668 to date and time
1
by: dougancil | last post by:
I have the following sql query: SELECT .name, .Employeenumber, Convert (-(/1000)/60))/1440+1,"mm/dd/yy"as , FROM Employees INNER JOIN mOpInterval ON .Loginname1 = mOpInterval.Opname The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.