Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Convertion in MS Access 97

Status
Not open for further replies.

hianjali

Programmer
Jan 5, 2006
29
US
Hello All,

Could anyone give me the syntax for Date convertion in MS Access 97? Thanks
 
Convert what to what? Can you provide some sample of a value you need to convert and what you expect to convert it to?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
I have the date format to 20060109 i need it as 01/09/2006
 
Why didn't you say this in your first post?
Assuming the value is numeric, use:
DateSerial(YourValue\10000,(YourValue mod 10000)\100,YourValue mod 100)

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top