Jump to content

CURDATE() in UK Format


jacko310592

Recommended Posts

hey guys,

i have this following line of code which i use to get users of a certain age range, but i need it to read from the UK date format (DD-MM-YYYY)

 

dob BETWEEN DATE_SUB(CURDATE(),INTERVAL {$ageTo} YEAR) AND DATE_SUB(CURDATE(),INTERVAL {$ageFrom} YEAR)

 

can someone please tell me how to change from the US format?

thanks

Link to comment
https://forums.phpfreaks.com/topic/196418-curdate-in-uk-format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.