Skip to content

fsans/FMAS3Datetime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

FMAS3Datetime

FileMaker to ActionScript Date Time parser

There is a date-time parser useful when you are dealing with dates to and from FileMaker (FMDate, FMTime, FMTimeStamp) and ActionScript (allways Date).

Remember that you should send/receive STRINGS to/from FileMaker WPE, not ActionScript Date objects, then you should convert the FileMaker date-like formated strings to ActionScript Date objects. In ActionScript Date, Time and Timestamp are described using the same class object, the Date() class object, so all Date, Time and Timestamp FileMaker strings should be converted to AS3 Date objects, and to corresponding strings before sent back to FM.

Function list

FMdate2date ( value : String ) : Date
Date2FMdate ( date : Date ) : String
FMtime2date ( value : String ) : Date
Date2FMtime ( date : Date ) : String
FMtimestamp2date ( value : String )
Date2FMtimestamp ( date:Date ) : String

Example

from FileMaker...

var d:Date = DateTimeParser.FMtimestamp2date ( "12/31/2000 12:00:00" )

back to FileMaker...

var s:String = DateTimeParser.Date2FMtimestamp ( d );

About

FileMaker - ActionScript Date, Time and Timestamp parser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published