Skip to content

Instantly share code, notes, and snippets.

@jasp402
Last active August 8, 2017 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasp402/8f5bfb291c4d9d8de68cd23a27bc7588 to your computer and use it in GitHub Desktop.
Save jasp402/8f5bfb291c4d9d8de68cd23a27bc7588 to your computer and use it in GitHub Desktop.
PHP - Bitrix (Generic format date )
$BxDate = date("m/d/Y", strtotime($fecha)); //Bitrix Date
$BxDate = date("m-d-Y h:i:s", strtotime($fecha)); //Bitrix DateTime
$BxDate = date("m-d-Y", strtotime($fecha)); //SQL Date
$BxDate = date("Ymdhis", strtotime("now")); //Current day for random Date
/* Date inside Business Process */
//{=System:Now}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment