Changes

Manipulating Dates

432 bytes added, 20:41, 27 July 2011
no edit summary
'''Example:'''
var newDate=ConvertDateStr(frm.startdate.value,'@dateformat@');
 
 
==ConvertDate==
Takes a date that is in the standard database format of yyyy-mm-dd and converts it to the preferred display format of the current user.
 
'''Syntax:'''<br>
:<font size="3">'''ConvertDate(''date'','@dateformat@')'''</font>
 
'''Where:'''
* ''date'' is the date you wish to change to the users preferred display format.
 
'''Example:'''
var newDate=ConvertDate(sdate,'@dateformat@');
==ssConvertDate==
Takes a date that is in the standard database any date format of yyyy-mm-dd and converts it to the preferred display any other date format of the current user.
'''Syntax:'''<br>
:<font size="3">'''ssConvertDateConvertDate(''date'','@dateformatfrom_dateformat@','@to_dateformat@')'''</font>
'''Where:'''
'''Example:'''
var newDate=ssConvertDate(sdate,'@dateformat@yyyy-mm-dd','dd/mm/yyyy');or var newDate=ssConvertDate(sdate,'mm/dd/yyyy','dd-mm-yyyy');
0
edits