Jennifer Lopez and Ben Affleck, 51, enjoyed a night on the town on Saturday as they partied for pal Pia Miller‘s 40th birthday.

The singer, 54, looked glam in a green satin dress that hugged her famous curves.

Before the event for the Australian model and actress, the Waiting for Tonight singer shared a couple of snaps of herself in the gorgeous gown.

She captioned the post simply: ‘Date Night,’ and added a white heart emoji.

Former Home and Away actress Pia and her Endeavor Talent Agency chairman husband Patrick Whitesell are longtime friends of JLo and Ben and were among the guests at their 2022 wedding.

Gorgeous: The Waiting for Tonight singer shared a couple of snaps of herself in the gorgeous gown on Instagram

Gorgeous: The Waiting for Tonight singer shared a couple of snaps of herself in the gorgeous gown on Instagram

Jennifer Lopez sizzles in green dress as she dances with a plant

Later in the evening the Jenny From the Block hitmaker uploaded a video of her dancing at the party while holding a pair of palm fronds.

She captioned it: ‘When your song comes on and you’re next to a plant…waiting for Date night. #WaitingForTonight.’

A fan blew her long honey-colored locks around as if she was filming a sultry music video.

JLo looked like she was having a fabulous time at the party as she smiled and acted out her popular hit dance song.

Ben looked dapper for the formal dress code, choosing a black suit and white shirt.

Meanwhile, it was revealed this week that Jennifer has sold her Bel Air mansion in California, nine months after listing the property – which was her last home before she married Ben.

The 54-year-old Grammy winner sold the nine-bedroom home for $34 million — a record in the area — after initially asking $42.5 million for it in February, as per TMZ.

The singer originally snapped up the home, which boasts a 100-seat outdoor amphitheater, for $28M in 2016.

Meanwhile the Argo director, 51, also sold his 7-bed and 9-bathroom Pacific Palisades estate around the time he married Lopez.

Date night: She captioned the post simply: 'Date Night,' and added a white heart emoji

Date night: She captioned the post simply: ‘Date Night,’ and added a white heart emoji

Her song: 'When your song comes on and you're next to a plant...Waiting for Datenight,' she captioned a post of herself dancing with palm fronds to her hit song

Her song: ‘When your song comes on and you’re next to a plant…Waiting for Datenight,’ she captioned a post of herself dancing with palm fronds to her hit song

Windy: A fan blew her long honey-colored locks around as if she was filming a sultry music video

Windy: A fan blew her long honey-colored locks around as if she was filming a sultry music video

Happy: JLo looked like she was having a fabulous time at the party as she smiled and acted out her popular hit dance song

Happy: JLo looked like she was having a fabulous time at the party as she smiled and acted out her popular hit dance song

Reenactment: JLo looked like she was making a music video during her impromptu dance

Reenactment: JLo looked like she was making a music video during her impromptu dance

Friends: She and Ben have been longtime friends with Pia Miller and Patrick Whitesell

Friends: She and Ben have been longtime friends with Pia Miller and Patrick Whitesell

Jennifer Lopez talks the design process for Intimissimi line

The duo have since taken out a $20 million mortgage on a Beverly Hills mansion they purchased in cash earlier this year for a staggering $60.85 million.

The star’s former Bel Air mansion also featured a private lake and beach, an indoor movie theater, an infinity-edge pool, a gym, and 13 bathrooms.

Lopez first purchased the stunning eight-acre property from actor Sela Ward and her husband, entrepreneur Howard Sherman.

In total, the estate covers an estimated 14,000 square feet.