Solved

define date field

Posted on 2003-12-02
2
468 Views
Last Modified: 2010-04-27
i have a Date field that i've imported and it looks like this:

11/19/2003 16:10:07

if the field is called "Date"
how do i define it  - i want it to be mm/dd/yyyy and Now() so a timestamp when someone enters a new field in a db.
0
Comment
Question by:phillystyle123
2 Comments
 
LVL 1

Accepted Solution

by:
Scurv earned 75 total points
ID: 9861674
Date and Time are different variables in FMP. This should give you want you want:

DateToText(Status(CurrentDate)) & " " & TimeToText(Status(CurrentTime))

It will automatically be formatted to your computers regional settings (e.g. American, English). If you want to change how it looks then you need to do some clever month, day, year extractions and then recompile in the correct order.
0
 
LVL 3

Expert Comment

by:Mariano_Peterson
ID: 9869583
As Scruv mentioned, you have to create two fields in FileMaker to store a date-stamp: DateStamp and TimeStamp.  In the field definitions for the fields (File > Define Fields) double click on the DateStamp field; then in the "Auto-Enter" tab of the resulting dialog box, select the first option ("the Creation Date").  You can change "Creation Date" to "Modification Date".  This will cause the field to be udpated with the current date every time the record is updated.  Do the same for your TimeStamp field.

If you want to retain your imported data you'll have to use the Replace command with a calculated result, then define a calc like: LeftWords(oldDateTimeStamp, 3) to extract the date portion.  Then do the same for the time.  You might have to wrap textToDate( ) and textToTime( ) around the leftWords( ) and rightWords( ) calcs for this to work.  Good luck,

Mariano
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
FileMaker Pro 10 webviewer cache error 3 72
New to FMP 6 118
Filemaker pro 10 field content not appearing 7 42
filemaker security 1 389
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now